[FIX] account: Fix forward-port of ec25b9d01b

Since this commit has been wrongly forward-ported, the fix is still not deployed on 12.0.

closes odoo/odoo#30505
This commit is contained in:
Laurent Smet
2019-01-24 10:08:44 +00:00
parent 37cb987177
commit 2bba89c4ad
+1 -1
View File
@@ -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):