You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
603 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="1">
  4. <record id="model_tile_rule" model="ir.rule">
  5. <field name="name">tile.owner</field>
  6. <field name="model_id" ref="model_tile_tile" />
  7. <field name="groups" eval="[(4, ref('base.group_user'))]"/>
  8. <field name="domain_force">
  9. [
  10. '|',
  11. ('user_id','=',user.id),
  12. ('user_id','=',False),
  13. '|',
  14. ('group_ids','=',False),
  15. ('group_ids','in',[g.id for g in user.groups_id]),
  16. ]
  17. </field>
  18. </record>
  19. </data>
  20. </openerp>