Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] account: Fix forward-port of ec25b9d #31218

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/account/models/chart_template.py
Expand Up @@ -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):
Expand Down