From 2bba89c4ad5d393a15e02f0b7435ea7c63935bb0 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Thu, 24 Jan 2019 10:08:44 +0000 Subject: [PATCH] [FIX] account: Fix forward-port of ec25b9d01b27b33339d64c4833563c4f1c987dc8 Since this commit has been wrongly forward-ported, the fix is still not deployed on 12.0. closes odoo/odoo#30505 --- addons/account/models/chart_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 6e4256cb230..dbd73755acb 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -174,7 +174,7 @@ class AccountChartTemplate(models.Model): # (won't work well for multi-company) company = self.env.user.company_id # If we don't have any chart of account on this company, install this chart of account - if not company.chart_template_id: + if not self.existing_accounting(company): self.load_for_current_company(15.0, 15.0) def load_for_current_company(self, sale_tax_rate, purchase_tax_rate):