diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index f93f21727c27eaecf8facc459b8df7125b4c0f38..3ce7ce67bdf1e29c8c5d1a1a58d0e9f68862102c 100644 --- a/addons/point_of_sale/models/pos_config.py +++ b/addons/point_of_sale/models/pos_config.py @@ -193,10 +193,7 @@ class PosConfig(models.Model): @api.depends('company_id') def _compute_company_has_template(self): for config in self: - if config.company_id.chart_template_id: - config.company_has_template = True - else: - config.company_has_template = False + config.company_has_template = self.env['account.chart.template'].existing_accounting(config.company_id) or config.company_id.chart_template_id def _compute_is_installed_account_accountant(self): account_accountant = self.env['ir.module.module'].sudo().search([('name', '=', 'account_accountant'), ('state', '=', 'installed')])