2018-01-16 06:58:15 +01:00
<?xml version="1.0" ?>
2018-01-16 11:34:37 +01:00
<flectra >
2018-01-16 06:58:15 +01:00
<record model= "ir.module.category" id= "module_lunch_category" >
<field name= "name" > Lunch</field>
<field name= "description" > Helps you handle your lunch needs, if you are a manager you will be able to create new products, cashmoves and to confirm or cancel orders.</field>
<field name= "sequence" > 16</field>
</record>
<record id= "group_lunch_user" model= "res.groups" >
<field name= "name" > User</field>
<field name= "category_id" ref= "module_lunch_category" />
</record>
<record id= "group_lunch_manager" model= "res.groups" >
<field name= "name" > Manager</field>
<field name= "implied_ids" eval= "[(4, ref('group_lunch_user'))]" />
<field name= "category_id" ref= "module_lunch_category" />
<field name= "users" eval= "[(4, ref('base.user_root'))]" />
</record>
<record id= "lunch_mind_your_own_food_money" model= "ir.rule" >
<field name= "name" > lunch.cashmove: do not see other people's cashmove</field>
<field name= "model_id" ref= "model_lunch_cashmove" />
<field name= "groups" eval= "[(4, ref('group_lunch_user'))]" />
<field name= "domain_force" > [('user_id', '=', user.id)]</field>
</record>
<record id= "lunch_mind_other_food_money" model= "ir.rule" >
<field name= "name" > lunch.cashmove: do see other people's cashmove</field>
<field name= "model_id" ref= "model_lunch_cashmove" />
<field name= "groups" eval= "[(4, ref('group_lunch_manager'))]" />
<field name= "domain_force" > [(1, '=', 1)]</field>
</record>
<record id= "lunch_order_line_rule_delete" model= "ir.rule" >
<field name= "name" > lunch.order.line: Only new and cancelled order lines deleted.</field>
<field name= "model_id" ref= "lunch.model_lunch_order_line" />
<field name= "domain_force" > [('state', 'in', ('new', 'cancelled'))]</field>
<field name= "perm_read" eval= "0" />
<field name= "perm_write" eval= "0" />
<field name= "perm_create" eval= "0" />
<field name= "perm_unlink" eval= "1" />
<field name= "groups" eval= "[(4,ref('lunch.group_lunch_user'))]" />
</record>
<data noupdate= "1" >
<record id= "base.default_user" model= "res.users" >
<field name= "groups_id" eval= "[(4,ref('lunch.group_lunch_manager'))]" />
</record>
</data>
2018-01-16 11:34:37 +01:00
</flectra>