From 84b2bec5211082f55f54afe4fe040aed3cf3a3a0 Mon Sep 17 00:00:00 2001 From: "Amit Patel (OpenERP)" Date: Tue, 5 Jun 2012 16:49:46 +0530 Subject: [PATCH] [IMP]:set dict if context is None. bzr revid: apa@tinyerp.com-20120605111946-c3wqtixpybqc9qks --- addons/account/account.py | 1 + addons/account/installer.py | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/account/account.py b/addons/account/account.py index d501f35cbc7..f0c16d8586c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -3031,6 +3031,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): return res def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): + if context is None:context = {} res = super(wizard_multi_charts_accounts, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) cmp_select = [] acc_template_obj = self.pool.get('account.chart.template') diff --git a/addons/account/installer.py b/addons/account/installer.py index dc072787f96..6cf52f58f6c 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -94,6 +94,7 @@ class account_installer(osv.osv_memory): raise osv.except_osv(_('No unconfigured company !'), _("There are currently no company without chart of account. The wizard will therefore not be executed.")) def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): + if context is None:context = {} res = super(account_installer, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) cmp_select = [] # display in the widget selection only the companies that haven't been configured yet