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

[fix] depends in compute_amount_residual

parent 983a897b
Branches 18.0
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":
......
...@@ -100,6 +100,7 @@ class ScopImportIDFWizard(models.TransientModel): ...@@ -100,6 +100,7 @@ class ScopImportIDFWizard(models.TransientModel):
model = "scop.cotisation.idf" model = "scop.cotisation.idf"
for row in reader: for row in reader:
print(row)
line += 1 line += 1
journal = row["Journal"] journal = row["Journal"]
if journal in ["VE", "BFC"]: if journal in ["VE", "BFC"]:
......
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