[FIX] Correctly skip matching only when exclude_bank_reconcile is True

This commit is contained in:
mreficent
2020-02-27 13:25:03 +01:00
committed by Lois Rilo
parent 99916d1643
commit 1c0564baeb

View File

@@ -11,5 +11,5 @@ class AccountReconcileModel(models.Model):
def _apply_conditions(self, query, params):
query, params = super(
AccountReconcileModel, self)._apply_conditions(query, params)
query += ' AND account.exclude_bank_reconcile = False'
query += ' AND account.exclude_bank_reconcile IS NOT TRUE'
return query, params