From a78403cf815ac7013e5587c8ca369148cacb26f9 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 29 Apr 2021 13:21:38 +0200 Subject: [PATCH] Do not test past payment date for supplier invoices issue10370 review361821003 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index a2e4003ce0..c17dee6219 100644 --- a/invoice.py +++ b/invoice.py @@ -999,7 +999,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin): total, self.company.currency, payment_date) remainder_total_currency = total_currency for date, amount in term_lines: - if date < today: + if self.type == 'out' and date < today: lang = Lang.get() warning_key = 'invoice_payment_term_%d' % self.id if Warning.check(warning_key):