From 9fdee5df077aa311542c3aee53bdbd96cf3bae2c Mon Sep 17 00:00:00 2001 From: RemiFr82 Date: Fri, 24 Nov 2023 12:43:22 +0100 Subject: [PATCH] [FIX] wizard_chart_update.py Use tax record as key in tax_template_ref dict because in odoo/account/models/chart_template.py line 959, the given key on dict reading is a tax record and not a simple id. --- account_chart_update/wizard/wizard_chart_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index 3df3bc86..c855c604 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -1159,7 +1159,7 @@ class WizardUpdateChartsAccounts(models.TransientModel): if wiz_account.type == "new": # Create the account tax_template_ref = { - tax.id: self.find_tax_by_templates(tax) for tax in template.tax_ids + tax: self.find_tax_by_templates(tax) for tax in template.tax_ids } vals = self.chart_template_id._get_account_vals( self.company_id,