From efaff83579748d44ab537da7ac06072d48249ea5 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 18 Nov 2021 19:16:41 +0100 Subject: [PATCH] Check account objects instead of id, so if account is None it does not crash. #047955 --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 0652401..8a6b024 100644 --- a/sale.py +++ b/sale.py @@ -320,7 +320,7 @@ class WizardSaleReconcile(Wizard): continue for line in payment.move.lines: if (not line.reconciliation and - line.account.id == account.id): + line.account == account): lines.append(line) amount += line.debit - line.credit if lines and amount == Decimal('0.0'):