|
- <?xml version="1.0" ?>
- <odoo>
- <record id="module_car_category" model="ir.module.category">
- <field name="name">Car</field>
- </record>
- <!-- Car User Group -->
- <record id="car_group_user" model="res.groups">
- <field name="name">User</field>
- <field name="category_id" ref="module_car_category" />
- <field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
- </record>
- <!-- Car Manager Group -->
- <record id="car_group_manager" model="res.groups">
- <field name="name">Manager</field>
- <field name="category_id" ref="module_car_category" />
- <field name="implied_ids" eval="[(4, ref('car_group_user'))]" />
- <field name="users" eval="[
- (4, ref('base.user_root')),
- (4, ref('base.user_admin'))
- ]" />
- </record>
- <data noupdate="1">
- <record id="car_user_rule" model="ir.rule">
- <field name="name">Car Name User Access</field>
- <field name="model_id" ref="model_car_data" />
- <field name="domain_force">
- [('active','=',True)]
- </field>
- <field name="groups" eval="[(4,ref('car_group_user'))]" />
- </record>
- </data>
- </odoo>
|