From b0efd0a46a0384d99dd96568fd3844ae22b449f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Thu, 5 Feb 2015 15:14:53 +0100 Subject: [PATCH] [FIX] account_chart_update: fix None context issue --- account_chart_update/wizard/wizard_chart_update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index 79efc3f29..f8c251ea5 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -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):