From 697b53e68a03ce0f8c7bf681c14bca171bfd26fa Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 16 Feb 2026 20:01:57 +0100 Subject: [PATCH] 16.02.26 --- modules/account_invoice/payment_term.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account_invoice/payment_term.py b/modules/account_invoice/payment_term.py index 558f666..255cceb 100755 --- a/modules/account_invoice/payment_term.py +++ b/modules/account_invoice/payment_term.py @@ -48,7 +48,7 @@ class PaymentTerm(DeactivableMixin, ModelSQL, ModelView): '.msg_payment_term_missing_last_remainder', payment_term=term.rec_name)) - def compute(self, amount, currency, date, line = None): + def compute(self, amount, currency, date, line_ = None): """Calculate payment terms and return a list of tuples with (date, amount) for each payment term line. @@ -61,7 +61,7 @@ class PaymentTerm(DeactivableMixin, ModelSQL, ModelView): remainder = amount for line in self.lines: value = line.get_value(remainder, amount, currency) - value_date = line.get_date(date, line) + value_date = line.get_date(date, line_) if value is None or not value_date: continue if ((remainder - value) * sign) < Decimal(0):