Set party clause to None when retrieve currencies to reconcile without party

Closes #12601
This commit is contained in:
Cédric Krier
2023-10-11 18:34:32 +02:00
parent ada6602717
commit caf654f1ec
+1 -1
View File
@@ -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)