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
28 lines
1.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data 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('base.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('base.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>
|
|
|
|
|
|
</data>
|
|
</odoo>
|