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.

31 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="0">
  4. <!-- Web Note User Group -->
  5. <record model="res.groups" id="group_web_note_user">
  6. <field name="name">Web Note / User</field>
  7. <field name="users" eval="[(4, ref('base.user_root'))]"/>
  8. </record>
  9. <!-- Record Rules for Notes -->
  10. <record id="rule_web_note_private" model="ir.rule">
  11. <field name="name">Note Private</field>
  12. <field name="model_id" ref="web_note.model_web_note"/>
  13. <field name="groups" eval="[(4,ref('group_web_note_user'))]"/>
  14. <field name="domain_force">['|',('type', '!=', 'private'),'&amp;' ,('type', '=', 'private'), ('create_uid', '=', user.id)]</field>
  15. <field name="perm_create" eval="True"/>
  16. <field name="perm_read" eval="True"/>
  17. <field name="perm_write" eval="True"/>
  18. <field name="perm_unlink" eval="True"/>
  19. </record>
  20. <!-- Record Rules for Notes Containers -->
  21. <record id="rule_web_note_container_private" model="ir.rule">
  22. <field name="name">Note Container Private</field>
  23. <field name="model_id" ref="web_note.model_web_note_container"/>
  24. <field name="groups" eval="[(4,ref('group_web_note_user'))]"/>
  25. <field name="domain_force">['|',('type', '!=', 'private'),'&amp;', ('type', '=', 'private'), ('create_uid', '=', user.id)]</field>
  26. <field name="perm_create" eval="True"/>
  27. <field name="perm_read" eval="True"/>
  28. <field name="perm_write" eval="True"/>
  29. <field name="perm_unlink" eval="True"/>
  30. </record>
  31. </data>
  32. </openerp>