Merge PR #341 into 12.0

Signed-off-by alexey-pelykh
This commit is contained in:
OCA-git-bot
2020-09-21 08:25:30 +00:00

View File

@@ -11,5 +11,7 @@ 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 IS NOT TRUE'
rule = self.env["account.reconcile.model"].browse(params[1])
if rule.rule_type == "invoice_matching":
query += ' AND account.exclude_bank_reconcile IS NOT TRUE'
return query, params