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.

28 lines
1.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="my_crm_phonecall_rule" model="ir.rule">
  5. <field name="name">Personal Phone Calls</field>
  6. <field name="model_id" ref="model_crm_phonecall"/>
  7. <field name="groups" eval="[(4, ref('base.group_sale_salesman'))]"/>
  8. <field name="domain_force">['|', ('user_id', '=', False), ('user_id', '=', user.id)]</field>
  9. </record>
  10. <record id="all_crm_phonecall_rule" model="ir.rule">
  11. <field name="name">All Phone Calls</field>
  12. <field name="model_id" ref="model_crm_phonecall"/>
  13. <field name="groups" eval="[(4, ref('base.group_sale_salesman_all_leads'))]"/>
  14. <field name="domain_force">[(1, '=', 1)]</field>
  15. </record>
  16. <record id="multi_company_crm_phonecall_rule" model="ir.rule">
  17. <field name="name">Multi-company Phone Calls</field>
  18. <field name="model_id" ref="model_crm_phonecall"/>
  19. <field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
  20. </record>
  21. </data>
  22. </odoo>