|
|
<?xml version="1.0" encoding="utf-8"?> <odoo noupdate="1">
<record id="my_crm_phonecall_rule" model="ir.rule"> <field name="name">Personal Phone Calls</field> <field name="model_id" ref="model_crm_phonecall"/> <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> <field name="domain_force">['|', ('user_id', '=', False), ('user_id', '=', user.id)]</field> </record>
<record id="all_crm_phonecall_rule" model="ir.rule"> <field name="name">All Phone Calls</field> <field name="model_id" ref="model_crm_phonecall"/> <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/> <field name="domain_force">[(1, '=', 1)]</field> </record>
<record id="multi_company_crm_phonecall_rule" model="ir.rule"> <field name="name">Multi-company Phone Calls</field> <field name="model_id" ref="model_crm_phonecall"/> <field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field> </record>
</odoo>
|