Skip to content
Extraits de code Groupes Projets
Valider 750238e8 rédigé par migodoo's avatar migodoo
Parcourir les fichiers

[fix] depends in compute_amount_residual

parent 34d5560d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -85,7 +85,7 @@ class ScopCotisationsIDF(models.Model): ...@@ -85,7 +85,7 @@ class ScopCotisationsIDF(models.Model):
# ------------------------------------------------------ # ------------------------------------------------------
# Computed fields # Computed fields
# ------------------------------------------------------ # ------------------------------------------------------
@api.depends("payments_ids", "debit", "payments_ids.debit", "payments_ids.debit") @api.depends("payments_ids", "debit", "payments_ids.debit", "payments_ids.credit")
def _compute_amount_residual(self): def _compute_amount_residual(self):
for r in self: for r in self:
if r.type == "inv": if r.type == "inv":
......
...@@ -81,7 +81,7 @@ class ScopInvoiceIDF(models.Model): ...@@ -81,7 +81,7 @@ class ScopInvoiceIDF(models.Model):
# ------------------------------------------------------ # ------------------------------------------------------
# Computed fields # Computed fields
# ------------------------------------------------------ # ------------------------------------------------------
@api.depends("payments_ids", "debit", "payments_ids.debit", "payments_ids.debit") @api.depends("payments_ids", "debit", "payments_ids.debit", "payments_ids.credit")
def _compute_amount_residual(self): def _compute_amount_residual(self):
for r in self: for r in self:
if r.type == "inv": if r.type == "inv":
......
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