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.

26 lines
1.0 KiB

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