diff options
| author | Antonin Bourguignon <abo@openerp.com> | 2012-05-14 14:18:21 +0200 |
|---|---|---|
| committer | Antonin Bourguignon <abo@openerp.com> | 2012-05-14 14:18:21 +0200 |
| commit | 0cd0188c7d52bacda6047fe946a7b152c3189132 (patch) | |
| tree | 72653f4922e53076e40367e18506eb4e5c00fa2f /addons/portal/security | |
| parent | 23e0996663222a2c220ccddc0d402d30acd85536 (diff) | |
[IMP] change the id of the portal member's group from group_portal_user to group_portal_member
bzr revid: abo@openerp.com-20120514121821-xik2782yl8gn7mnj
Diffstat (limited to 'addons/portal/security')
| -rw-r--r-- | addons/portal/security/portal_security.xml | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/addons/portal/security/portal_security.xml b/addons/portal/security/portal_security.xml index 5e688f9ba91..5e72cd342d0 100644 --- a/addons/portal/security/portal_security.xml +++ b/addons/portal/security/portal_security.xml @@ -1,18 +1,20 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data noupdate="1"> + + <!-- Don't use any implied_ids here; this group behavior is particular --> + <record id="group_portal_member" model="res.groups"> + <field name="name">Member</field> + <field name="comment">Portal members can access information provided by the portal menu and the others module it's linked with. Also, portal members are chrooted in a specific menu.</field> + </record> + <record id="module_category_portal" model="ir.module.category"> <field name="name">Portal</field> <field name="parent_id" ref="base.module_category_tools"/> <field name="sequence">25</field> </record> - <record id="group_portal_user" model="res.groups"> - <field name="name">User</field> - <field name="comment">Portal users can access information provided by the portal menu and the others module it's linked with.</field> - <field name="category_id" ref="module_category_portal"/> - </record> - + <!-- No implied ids with 'member' since this group is highly restrictive (chrooted menu) --> <record id="group_portal_officer" model="res.groups"> <field name="name">Officer</field> <field name="comment">Portal officers can create new portal users with the portal wizard.</field> @@ -27,9 +29,19 @@ <field name="users" eval="[(4, ref('base.user_root'))]"/> </record> + <!-- menu Administration/Portals --> + <menuitem name="Portals Settings" id="portal_menu_settings" parent="base.menu_administration" + groups="group_portal_manager"/> + + <!-- root menu for portal members (chrooted in this menu) --> + <menuitem name="Portal Members Root Menu" id="portal_members_root_menu" parent="portal_menu_settings"/> + <record id="portal" model="res.portal"> <field name="name">Portal</field> - <field name="group_id" ref="group_portal_user"/> + <field name="group_id" ref="group_portal_member"/> + <field name="override_menu" eval="True"/> + <field name="parent_menu_id" ref="portal_members_root_menu"/> </record> + </data> </openerp> |
