[IMP]:set dict if context is None.

bzr revid: apa@tinyerp.com-20120605111946-c3wqtixpybqc9qks
This commit is contained in:
Amit Patel (OpenERP) 2012-06-05 16:49:46 +05:30
parent de21ac07e3
commit 84b2bec521
2 changed files with 2 additions and 0 deletions

View File

@ -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')

View File

@ -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