From 19edd7419f99cb92f0f11cb1da64cac7010db5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Dec 2023 18:43:55 +0100 Subject: [PATCH] Do not rely on invoice state to compute reconciliation lines Closes #12864 (grafted from 94018bd6531aa5943e5044d925b24c04fc5ecb8c) --HG-- branch : 6.0 --- modules/account_invoice/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 2db45844ea..908acb4500 100644 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -723,7 +723,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin): return lines def get_reconciliation_lines(self, name): - if self.state != 'paid': + if not self.move: return lines = set() for line in self.move.lines: