summaryrefslogtreecommitdiff
path: root/openerp/addons/base/security/base_security.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-08-11 17:01:08 +0200
committerThibault Delavallée <tde@openerp.com>2015-08-12 11:41:58 +0200
commitecef9ebff19c6c8e08bf0b33a591c1fc0d921b98 (patch)
tree939b4728e5f384bc1f9d80b7b2b9ad10a97d62b3 /openerp/addons/base/security/base_security.xml
parent2338dd8327fd9a4256bd1245070d2c1e7dc3163a (diff)
[IMP] base: config: module category cleaning
- removed unused categories, aka report designer, CRM and knowledge management - renamed Warehouse to Inventory - defined all user groups in base_security, instead of having most of them in base_security and 3 others defined in other files. Portal, public and partner_manager groups are now present in base_security. This uniformize the declaration of groups and module categories. - define a new Extra / Other category, holding those 3 groups, to ease the classification and display - rename Usability ot Extra Rights[IMP] base: config: module category cleaning - removed unused categories, aka report designer, CRM and knowledge management - renamed Warehouse to Inventory - defined all user groups in base_security, instead of having most of them in base_security and 3 others defined in other files. Portal, public and partner_manager groups are now present in base_security. This uniformize the declaration of groups and module categories. - define a new Extra / Other category, holding those 3 groups, to ease the classification and display - rename Usability ot Extra Rights
Diffstat (limited to 'openerp/addons/base/security/base_security.xml')
-rw-r--r--openerp/addons/base/security/base_security.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/openerp/addons/base/security/base_security.xml b/openerp/addons/base/security/base_security.xml
index d55d2c54d36..4a3c779bf1f 100644
--- a/openerp/addons/base/security/base_security.xml
+++ b/openerp/addons/base/security/base_security.xml
@@ -14,6 +14,7 @@
<field name="name">Access Rights</field>
<field name="implied_ids" eval="[(4, ref('group_configuration'))]"/>
</record>
+
<record model="res.groups" id="group_system">
<field name="name">Settings</field>
<field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/>
@@ -40,11 +41,39 @@
<record id="group_sale_salesman" model="res.groups">
<field name="name">User</field>
</record>
+
<record id="group_sale_manager" model="res.groups">
<field name="name">Manager</field>
<field name="implied_ids" eval="[(4, ref('group_sale_salesman'))]"/>
</record>
+ <record model="res.groups" id="group_partner_manager">
+ <field name="name">Contact Creation</field>
+ </record>
+
+ <!--
+ A group dedicated to the portal users, making groups
+ restrictions more convenient.
+ -->
+ <record id="group_portal" model="res.groups">
+ <field name="name">Portal</field>
+ <field name="comment">Portal members have specific access rights (such as record rules and restricted menus).
+ They usually do not belong to the usual Odoo groups.</field>
+ </record>
+ <!--
+ A group dedicated to the public user only, making groups
+ restrictions more convenient.
+ -->
+ <record id="group_public" model="res.groups">
+ <field name="name">Public</field>
+ <field name="comment">Public users have specific access rights (such as record rules and restricted menus).
+ They usually do not belong to the usual Odoo groups.</field>
+ </record>
+
+ <record id="public_user" model="res.users">
+ <field name="groups_id" eval="[(6,0,[ref('base.group_public')])]"/>
+ </record>
+
<record model="ir.rule" id="res_partner_rule">
<field name="name">res.partner company</field>
<field name="model_id" ref="model_res_partner"/>