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)