[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user