event_security.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="event_event_public" model="ir.rule">
  5. <field name="name">Event: public/portal: published read</field>
  6. <field name="model_id" ref="event.model_event_event"/>
  7. <field name="domain_force">[('website_published', '=', True)]</field>
  8. <field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
  9. <field name="perm_read" eval="True"/>
  10. <field name="perm_write" eval="False"/>
  11. <field name="perm_create" eval="False"/>
  12. <field name="perm_unlink" eval="False"/>
  13. </record>
  14. <record id="ir_rule_event_tag_public" model="ir.rule">
  15. <field name="name">Event Tag: public/portal: color = published and category = published</field>
  16. <field name="model_id" ref="event.model_event_tag"/>
  17. <field name="domain_force">[('category_id.website_published', '=', True), ('color', '!=', False), ('color', '!=', 0)]</field>
  18. <field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
  19. <field name="perm_read" eval="True"/>
  20. <field name="perm_write" eval="False"/>
  21. <field name="perm_create" eval="False"/>
  22. <field name="perm_unlink" eval="False"/>
  23. </record>
  24. <record id="ir_rule_event_event_ticket_public" model="ir.rule">
  25. <field name="name">Event Ticket: public/portal: published read</field>
  26. <field name="model_id" ref="event.model_event_event_ticket"/>
  27. <field name="domain_force">[('event_id.website_published', '=', True)]</field>
  28. <field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
  29. <field name="perm_read" eval="True"/>
  30. <field name="perm_write" eval="False"/>
  31. <field name="perm_create" eval="False"/>
  32. <field name="perm_unlink" eval="False"/>
  33. </record>
  34. </data>
  35. <record id="event.group_event_manager" model="res.groups">
  36. <field name="implied_ids" eval="[(4, ref('website.group_website_restricted_editor'))]"/>
  37. </record>
  38. </odoo>