Browse Source

[IMP] remove group_easy_my_coop_super_manager, reorganise categories

pull/33/head
robin.keunen 5 years ago
parent
commit
97d6f65b79
  1. 5
      easy_my_coop/__manifest__.py
  2. 6
      easy_my_coop/data/easy_my_coop_data.xml
  3. 31
      easy_my_coop/security/easy_my_coop_security.xml
  4. 15
      easy_my_coop/security/res_groups.xml

5
easy_my_coop/__manifest__.py

@ -27,9 +27,9 @@
cooperative business processes. cooperative business processes.
""", """,
'data': [ 'data': [
'security/easy_my_coop_security.xml',
'security/ir.model.access.csv',
'data/easy_my_coop_data.xml', 'data/easy_my_coop_data.xml',
'security/res_groups.xml',
'security/ir.model.access.csv',
'wizard/create_subscription_from_partner.xml', 'wizard/create_subscription_from_partner.xml',
'wizard/update_partner_info.xml', 'wizard/update_partner_info.xml',
'wizard/validate_subscription_request.xml', 'wizard/validate_subscription_request.xml',
@ -54,6 +54,7 @@
], ],
'demo': [ 'demo': [
'demo/coop.xml', 'demo/coop.xml',
'demo/users.xml',
], ],
'installable': True, 'installable': True,
'application': True, 'application': True,

6
easy_my_coop/data/easy_my_coop_data.xml

@ -1,6 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data noupdate="1"> <data noupdate="1">
<record model="ir.module.category" id="module_category_cooperator_management">
<field name="name">Cooperative Management</field>
<field name="description">Helps you manage your cooperator.</field>
<field name="sequence">3</field>
</record>
<!-- Product --> <!-- Product -->
<record id="product_category_company_share" model="product.category"> <record id="product_category_company_share" model="product.category">
<field name="name">Company Share</field> <field name="name">Company Share</field>

31
easy_my_coop/security/easy_my_coop_security.xml

@ -1,31 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.module.category" id="module_category_cooperator_management">
<field name="name">Cooperative Management</field>
<field name="description">Helps you manage your cooperator.</field>
<field name="sequence">3</field>
</record>
<record id="group_easy_my_coop_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="module_category_cooperator_management"/>
</record>
<record id="group_easy_my_coop_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="module_category_cooperator_management"/>
<field name="implied_ids" eval="[(4, ref('group_easy_my_coop_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
<record id="group_easy_my_coop_super_manager" model="res.groups">
<field name="name">Super Manager</field>
<field name="category_id" ref="module_category_cooperator_management"/>
<field name="implied_ids" eval="[(4, ref('group_easy_my_coop_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
</data>
</openerp>

15
easy_my_coop/security/res_groups.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<record id="group_easy_my_coop_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="module_category_cooperator_management"/>
<field name="implied_ids" eval="[(6, 0, [ref('base.group_user'), ref('account.group_account_invoice'), ref('sales_team.group_sale_salesman')])]"/>
</record>
<record id="group_easy_my_coop_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="module_category_cooperator_management"/>
<field name="implied_ids" eval="[(4, ref('group_easy_my_coop_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
</openerp>
Loading…
Cancel
Save