[FIX] account_chart_update: fix None context issue

This commit is contained in:
Stéphane Bidoul
2015-02-05 15:14:53 +01:00
parent 4e2fa9ee19
commit b0efd0a46a

View File

@@ -332,6 +332,8 @@ class wizard_update_charts_accounts(orm.TransientModel):
"""
Adds a tax template -> tax id to the mapping.
"""
if context is None:
context = {}
if not tax_templ:
return False
if tax_templ_mapping.get(tax_templ.id):