From caf654f1ecfb9727b914c444f8a1b31492a6547c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Oct 2023 18:34:32 +0200 Subject: [PATCH] Set party clause to None when retrieve currencies to reconcile without party Closes #12601 --- modules/account/move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account/move.py b/modules/account/move.py index 0289a971d7..aeae4fe5e2 100644 --- a/modules/account/move.py +++ b/modules/account/move.py @@ -2175,7 +2175,7 @@ class Reconcile(Wizard): ) where = ((line.reconciliation == Null) & (line.account == account.id) - & (line.party == party.id if party else None)) + & (line.party == (party.id if party else None))) currency_expr = Coalesce(line.second_currency, account.currency.id) if currency: where &= (currency_expr == currency.id)