From 68fcba2d6571f6c886ba8bb56b5176e46191c10d Mon Sep 17 00:00:00 2001 From: Zina Rasoamanana Date: Tue, 29 Oct 2024 11:03:13 +0100 Subject: [PATCH] [FIX] account_chart_update: fix _update_accounts when creating account --- account_chart_update/wizard/wizard_chart_update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index e4177fdddb0..36b92ebbb74 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -1159,7 +1159,8 @@ def _update_accounts(self): if wiz_account.type == "new": # Create the account 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( self.company_id,