event_track_security.xml 1.3 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo noupdate="1">
  3. <record id="event_track_public" model="ir.rule">
  4. <field name="name">Event Tracks: public/portal: published</field>
  5. <field name="model_id" ref="website_event_track.model_event_track"/>
  6. <field name="domain_force">[('website_published', '=', True)]</field>
  7. <field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
  8. <field name="perm_read" eval="True"/>
  9. <field name="perm_write" eval="False"/>
  10. <field name="perm_create" eval="False"/>
  11. <field name="perm_unlink" eval="False"/>
  12. </record>
  13. <record id="ir_rule_event_track_tag_public" model="ir.rule">
  14. <field name="name">Event Track Tag: public/portal: color = published</field>
  15. <field name="model_id" ref="website_event_track.model_event_track_tag"/>
  16. <field name="domain_force">['&amp;', ('color', '!=', False), ('color', '!=', 0)]</field>
  17. <field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_portal'))]"/>
  18. <field name="perm_read" eval="True"/>
  19. <field name="perm_write" eval="False"/>
  20. <field name="perm_create" eval="False"/>
  21. <field name="perm_unlink" eval="False"/>
  22. </record>
  23. </odoo>