From 28e35c40ee2028f71b5433a5c5f8472ab11e9157 Mon Sep 17 00:00:00 2001
From: migodoo <jordan>
Date: Tue, 10 May 2022 13:11:03 +0200
Subject: [PATCH] [fix] depends in compute_amount_residual
---
models/scop_cotisation_idf.py | 2 +-
models/scop_invoice_idf.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/models/scop_cotisation_idf.py b/models/scop_cotisation_idf.py
index e6ed81f..89d7f30 100644
--- a/models/scop_cotisation_idf.py
+++ b/models/scop_cotisation_idf.py
@@ -72,7 +72,7 @@ class ScopCotisationsIDF(models.Model):
# Computed fields
# ------------------------------------------------------
@api.depends('payments_ids', 'debit',
- 'payments_ids.debit', 'payments_ids.debit')
+ 'payments_ids.debit', 'payments_ids.credit')
@api.multi
def _compute_amount_residual(self):
for r in self:
diff --git a/models/scop_invoice_idf.py b/models/scop_invoice_idf.py
index a8cc05d..588b811 100644
--- a/models/scop_invoice_idf.py
+++ b/models/scop_invoice_idf.py
@@ -68,7 +68,7 @@ class ScopInvoiceIDF(models.Model):
# Computed fields
# ------------------------------------------------------
@api.depends('payments_ids', 'debit',
- 'payments_ids.debit', 'payments_ids.debit')
+ 'payments_ids.debit', 'payments_ids.credit')
@api.multi
def _compute_amount_residual(self):
for r in self:
--
GitLab