From 1c3e8d4077fd9c42d9b1c49038bb261aa723d032 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 2 Jul 2020 10:01:17 +0000 Subject: [PATCH] [FIX] point_of_sale: do not block if no COA In case the COA is imported in the system, the `chart_template_id` of the company remains empty while the accounting is usable. However, in this case it's impossible to open a POS session. We leave the warning in the POS config but avoid blocking the user. opw-2286640 closes odoo/odoo#53999 X-original-commit: c73b241c5e8c269e1ebc4f517cc270d90b2e44ca Signed-off-by: Nicolas Martinelli (nim) --- addons/point_of_sale/models/pos_config.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index be83f99ed0d..2c772499794 100644 --- a/addons/point_of_sale/models/pos_config.py +++ b/addons/point_of_sale/models/pos_config.py @@ -578,9 +578,6 @@ class PosConfig(models.Model): """ self.ensure_one() if not self.current_session_id: - if check_coa and not tools.config['test_enable'] and not self.company_has_template: - raise UserError(_("A Chart of Accounts is not yet installed in your current company. Please install a " - "Chart of Accounts through the Invoicing/Accounting settings before launching a PoS session." )) self._check_company_journal() self._check_company_invoice_journal() self._check_company_payment()