2
0

[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.
This commit is contained in:
RemiFr82 2023-11-24 12:43:22 +01:00 committed by GitHub
parent a92120a4fe
commit 9fdee5df07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,