[IMP] account_chart_update: update accounts on taxes even if an update of the account was not requested

Useful when the chart of taxes changes but the chart of account
need not be updated.
This commit is contained in:
Stéphane Bidoul
2014-12-24 13:17:52 +01:00
parent 64817c2eba
commit 56045b4b29

View File

@@ -1514,7 +1514,7 @@ class wizard_update_charts_accounts(orm.TransientModel):
accounts_res = self._update_accounts(cr, uid, wizard, log,
taxes_res['mapping'],
context=context)
if wizard.update_tax and wizard.update_account:
if wizard.update_tax:
self._update_taxes_pending_for_accounts(cr, uid, wizard, log,
taxes_res['pending'],
accounts_res['mapping'],