diff --git a/models/cgscop_form_coop_demande.py b/models/cgscop_form_coop_demande.py index 207de99cc3fb4b9d6237fd895bed4df192019e75..6a8459247f28bbf3afd97069704d1d7f1f60c7e0 100644 --- a/models/cgscop_form_coop_demande.py +++ b/models/cgscop_form_coop_demande.py @@ -283,7 +283,10 @@ class CgscopFormCoopDemande(models.Model): """ return self.contact_mail - @api.depends("formation_id", "formation_montant_unit", "formation_nb_stagiaire") + @api.depends("formation_id", + "formation_montant_unit", + "formation_nb_stagiaire", + "formation_nb_jours") def _compute_formation_montant(self): """ Calcule le montant de la demande diff --git a/models/cgscop_form_coop_demande_collective.py b/models/cgscop_form_coop_demande_collective.py index e8100bb3e1c0a2b69069776e628b2c0b6ee34a68..3a72aa3833eee242588deb84c28abe3ca83e3717 100644 --- a/models/cgscop_form_coop_demande_collective.py +++ b/models/cgscop_form_coop_demande_collective.py @@ -237,7 +237,11 @@ class CgscopFormCoopDemandeCollective(models.Model): else: dmd.current_user_is_fc_admin = False - @api.depends("formation_id", "nb_stagiaire", "demande_ids", "formation_montant_unit") + @api.depends("formation_id", + "nb_stagiaire", + "demande_ids", + "formation_montant_unit", + "formation_nb_jours") def _compute_formation_montant(self): """ Calcule le montant de la demande