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