From 12fcd1be2f1a891b7fe099ad0044e68c45280907 Mon Sep 17 00:00:00 2001 From: "uco (OpenERP)" Date: Fri, 19 Nov 2010 19:18:01 +0530 Subject: [IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None. bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2 --- addons/base_setup/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/base_setup/__init__.py') diff --git a/addons/base_setup/__init__.py b/addons/base_setup/__init__.py index 934e1a3bdf8..85d01779842 100644 --- a/addons/base_setup/__init__.py +++ b/addons/base_setup/__init__.py @@ -42,10 +42,10 @@ class base_setup_config_choice(osv.osv_memory): file_data = tools.file_open(path,'rb').read() return base64.encodestring(file_data) - def get_users(self, cr, uid, context={}): + def get_users(self, cr, uid, context=None): user_obj = self.pool.get('res.users') user_ids = user_obj.search(cr, uid, []) - users = user_obj.browse(cr, uid, user_ids) + users = user_obj.browse(cr, uid, user_ids, context=context) user_str = '\n'.join(map(lambda x: ' - %s :\n\t\tLogin : %s \n\t\tPassword : %s' % (x.name, x.login, x.password), users)) return _('The following users have been installed : \n')+ user_str -- cgit v1.2.3