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):