2
0

[FIX] account_chart_update: Call mapping function instead of removed cache. Closes #240

This commit is contained in:
Pedro M. Baeza 2015-06-19 20:06:46 +02:00 committed by Luis J. Salvatierra
parent 317bb9f542
commit f98233d55e

View File

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