diff --git a/models/res_partner.py b/models/res_partner.py index 8bb8d8d4d4bfe72e7865b74430a13dac27ac8d4b..4688e1502e71a14436bedc200509e40a8f0b9d13 100644 --- a/models/res_partner.py +++ b/models/res_partner.py @@ -120,7 +120,7 @@ class ScopPartner(models.Model): ldt.project_id.cgscop_timesheet_code_id.domain == 'D'): rec.realized_time = rec.realized_time + ldt.unit_amount # On totalise les heures facturés - if ldt.project_id.hasattr("creation_invoiced") and ldt.project_id.creation_invoiced == True: + if ldt.project_id.creation_invoiced == True: if (ldt.project_id.cgscop_timesheet_code_id != False and ldt.project_id.cgscop_timesheet_code_id.domain == 'A'): rec.realized_followup = rec.realized_followup + ldt.unit_amount