security.xml 592 B

12345678910111213
  1. <odoo noupdate="1">
  2. <record id="test_access_right_fake_ticket" model="ir.rule">
  3. <field name="name">Fake Ticket: portal or following</field>
  4. <field name="model_id" ref="model_test_access_right_ticket"/>
  5. <field name="domain_force">[
  6. '|',
  7. ('message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
  8. ('message_partner_ids', 'in', [user.partner_id.id])
  9. ]</field>
  10. <field name="groups" eval="[Command.link(ref('base.group_portal'))]"/>
  11. </record>
  12. </odoo>