[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) <jol@odoo.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user