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