diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py index a3a2ea6384d..7914b695199 100644 --- a/openerp/addons/base/res/res_users.py +++ b/openerp/addons/base/res/res_users.py @@ -787,8 +787,9 @@ class users_view(osv.osv): # add "default_groups_ref" inside the context to set default value for group_id with xml values if 'groups_id' in fields and isinstance(context.get("default_groups_ref"), list): groups = [] + ir_model_data = self.pool.get('ir.model.data') for group_xml_id in context["default_groups_ref"]: - group_split = group.split('.') + group_split = group_xml_id.split('.') if len(group_split) != 2: raise osv.except_osv(_('Invalid context value'), _('Invalid context default_groups_ref value (model.name_id) : "%s"') % group) temp, group_id = ir_model_data.get_object_reference(cr, uid, group_split[0], group_split[1]); diff --git a/openerp/addons/base/res/res_users_view.xml b/openerp/addons/base/res/res_users_view.xml index 3848669efec..43afb9573a6 100644 --- a/openerp/addons/base/res/res_users_view.xml +++ b/openerp/addons/base/res/res_users_view.xml @@ -108,10 +108,11 @@
You are creating a new user. - - This user will have the access rights to be able to do the task assigned to it. You can see this list of groups of access rights on the field of the form view. - You should use the "Settings > Users" menu to change his access rights and other settings. +
+ This user will have the access rights to be able to do the task assigned to it: + +