[FIX] account_chart_update: fix _update_accounts when creating account

This commit is contained in:
Zina Rasoamanana
2024-10-29 11:03:13 +01:00
parent 778562e078
commit 68fcba2d65

View File

@@ -1159,7 +1159,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
if wiz_account.type == "new": if wiz_account.type == "new":
# Create the account # Create the account
tax_template_ref = { tax_template_ref = {
tax: self.find_tax_by_templates(tax) for tax in template.tax_ids tax: self.env["account.tax"].browse(self.find_tax_by_templates(tax))
for tax in template.tax_ids
} }
vals = self.chart_template_id._get_account_vals( vals = self.chart_template_id._get_account_vals(
self.company_id, self.company_id,