~openerp-dev/openobject-server/trunk-bug-1109002-Jay

Viewing all changes in revision 4829.

  • Committer: Thibault Delavallée
  • Date: 2013-03-18 12:09:05 UTC
  • mfrom: (4768.1.18 trunk-user-view-chm)
  • Revision ID: tde@openerp.com-20130318120905-1w9xpoyppnj62wlj
[MERGE] 'Invite & Quick Create User' update. The server branch holds in res_users.create() the support of  key in context, allowing to put xml_ids of user groups in the context of relational fields linking to res.users. The purpose of this modification is to quick-create users that will have the access rights related to the functional meaning of the field. For example creating an user in the 'Responsible' field of a task should add him in the group related to project management.

Example of use : <field name="user_id" string="Project Manager" context="{'default_groups_ref': ['base.group_user', 'project.group_project_manager']}"/> will add Employee (base.group_user) and Project Manager (project.group_project_manager) groups, as well as implied groups.

res_users:
- [add] added support of  key in context of default_get. It contains a list of xml_ids of user groups; those groups, if found, are added to the newly created user,
- [ref] refactored simplified (quick create) view that is now more like a contact card, with login and email required because of the login email that will be send to the user

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: