Set party clause to None when retrieve currencies to reconcile without party
Closes #12601
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user