# -*- coding: utf-8 -*- from odoo import api, fields, models, _, Command from odoo.osv import expression class AccountTaxGroup(models.Model): _inherit = 'account.tax.group' # _description = 'Tax Group' # _order = 'sequence asc' def _any_is_configured(self, company_id): domain = expression.OR([[('property_tax_payable_account_id', '!=', False)], [('property_tax_receivable_account_id', '!=', False)], [('property_advance_tax_payment_account_id', '!=', False)]]) group_with_config = self.with_company(company_id).search_count(domain) return group_with_config > 0