[FIX] account_reconciliation_widget: EError when click reconcile button

This commit is contained in:
Your Name
2024-05-07 09:42:39 +07:00
parent f7a9173647
commit 305ec6817a

View File

@@ -160,7 +160,9 @@ class AccountReconciliation(models.AbstractModel):
self.env["res.partner.bank"]._apply_ir_rules(ir_rules_query, "read")
from_clause, where_clause, where_clause_params = ir_rules_query.get_sql()
if where_clause:
where_bank = ("AND %s" % where_clause).replace("res_partner_bank", "bank")
where_bank = ("AND %s" % where_clause).replace(
'"res_partner_bank"', '"bank"'
)
params += where_clause_params
else:
where_bank = ""
@@ -172,7 +174,7 @@ class AccountReconciliation(models.AbstractModel):
self.env["res.partner"]._apply_ir_rules(ir_rules_query, "read")
from_clause, where_clause, where_clause_params = ir_rules_query.get_sql()
if where_clause:
where_partner = ("AND %s" % where_clause).replace("res_partner", "p3")
where_partner = ("AND %s" % where_clause).replace('"res_partner"', '"p3"')
params += where_clause_params
else:
where_partner = ""