From 0e5c40e9a2a3cddce38d759d9ebfdd1b58be17b3 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 16 Feb 2026 19:55:09 +0100 Subject: [PATCH] 16.02.26 --- modules/account_invoice/invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index a6af844..6a90680 100755 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -1287,9 +1287,11 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): if self.payment_term: payment_date = self.payment_term_date or self.invoice_date or today model = str(self.lines[0].origin).split(",")[0] if self.lines[0].origin else None + logger.info("MODEL:%s",model) if model: Line = Pool().get(model) line = Line(int(str(self.lines[0].origin).split(",")[1])) + logger.info("LINE:%s",line) term_lines = self.payment_term.compute( self.total_amount, self.currency, payment_date, line) else: