Skip to content
Extraits de code Groupes Projets
Valider 683273e3 rédigé par Julien - Le Filament's avatar Julien - Le Filament
Parcourir les fichiers

[fix] fix bug

parent d4d25894
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -120,7 +120,7 @@ class ScopPartner(models.Model): ...@@ -120,7 +120,7 @@ class ScopPartner(models.Model):
ldt.project_id.cgscop_timesheet_code_id.domain == 'D'): ldt.project_id.cgscop_timesheet_code_id.domain == 'D'):
rec.realized_time = rec.realized_time + ldt.unit_amount rec.realized_time = rec.realized_time + ldt.unit_amount
# On totalise les heures facturés # On totalise les heures facturés
if ldt.project_id.creation_invoiced == True: if ldt.project_id.hasattr("creation_invoiced") and ldt.project_id.creation_invoiced == True:
if (ldt.project_id.cgscop_timesheet_code_id != False and if (ldt.project_id.cgscop_timesheet_code_id != False and
ldt.project_id.cgscop_timesheet_code_id.domain == 'A'): ldt.project_id.cgscop_timesheet_code_id.domain == 'A'):
rec.realized_followup = rec.realized_followup + ldt.unit_amount rec.realized_followup = rec.realized_followup + ldt.unit_amount
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter