diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index bc65d05fd9c..ea46aad747d 100644 --- a/addons/point_of_sale/models/pos_config.py +++ b/addons/point_of_sale/models/pos_config.py @@ -182,10 +182,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: - config.company_has_template = True - else: - config.company_has_template = False + config.company_has_template = config.company_id.sudo()._existing_accounting() or config.company_id.chart_template def _compute_is_installed_account_accountant(self): account_accountant = self.env['ir.module.module'].sudo().search([('name', '=', 'account_accountant'), ('state', '=', 'installed')])