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: