From f98233d55e0728629af1955e83903f8d08aca16d Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 19 Jun 2015 20:06:46 +0200 Subject: [PATCH] [FIX] account_chart_update: Call mapping function instead of removed cache. Closes #240 --- 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 e066ada3..005c3a2f 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -976,7 +976,7 @@ class WizardUpdateChartsAccounts(models.TransientModel): mapping_accounts): root_account_id = self.chart_template_id.account_root_id.id # Get the taxes - taxes = [self._tax_mapping[tax_template] + taxes = [self.map_tax_template(tax_template, mapping_taxes) for tax_template in account_template.tax_ids if self.map_tax_template(tax_template, mapping_taxes)] # Calculate the account code (we need to add zeros to non-view