Skip to content
Permalink
Browse files

[FIX] account: Fix forward-port of ec25b9d

since the fix of the forward-port has missed checking the chart template
too
2bba89c

Check the chart template is required because company could have a chart
template and any record at  ['account.move.line', 'account.invoice',
'account.payment', 'account.bank.statement'] models
  • Loading branch information...
hugho-ad committed Feb 18, 2019
1 parent 03ea5f9 commit 5f0e2c31e5e9db1738ffb534a5a30ba3bedb110d
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account/models/chart_template.py
@@ -174,7 +174,7 @@ def try_loading_for_current_company(self):
# (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 self.existing_accounting(company):
if not company.chart_template_id and 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):

0 comments on commit 5f0e2c3

Please sign in to comment.
You can’t perform that action at this time.