From 7e23c6866e0dfdbafd8bb45b360971b325285fe1 Mon Sep 17 00:00:00 2001 From: Kartik Chavda Date: Wed, 14 Dec 2022 05:09:57 +0000 Subject: [PATCH] [FIX] account: fix account domain leaf issue Issue: - clicking on various account field gives traceback because of invalid domain. Cause: - https://github.com/odoo/odoo/pull/105131 PR remove a leaf from account domain but forgot to remove '&' operator. Fix: - removes '&' operator from account domain. task-3099758 closes odoo/odoo#107914 Signed-off-by: John Laterre (jol) --- addons/account/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/product.py b/addons/account/models/product.py index a1ddeea5620..99b8d0b9e22 100644 --- a/addons/account/models/product.py +++ b/addons/account/models/product.py @@ -3,7 +3,7 @@ from odoo import api, fields, models, _ from odoo.tools import format_amount -ACCOUNT_DOMAIN = "['&', '&', '&', ('deprecated', '=', False), ('account_type', 'not in', ('asset_receivable','liability_payable','asset_cash','liability_credit_card','off_balance')), ('company_id', '=', current_company_id)]" +ACCOUNT_DOMAIN = "['&', '&', ('deprecated', '=', False), ('account_type', 'not in', ('asset_receivable','liability_payable','asset_cash','liability_credit_card','off_balance')), ('company_id', '=', current_company_id)]" class ProductCategory(models.Model): _inherit = "product.category"