[REV] crm: allow a user assigned to activity to see lead
This commit is contained in:
parent
4cf45b1c78
commit
481cfbdf6a
@ -27,16 +27,7 @@
|
||||
<field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field>
|
||||
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
|
||||
</record>
|
||||
<record id="crm_rule_lead_assigned_activities" model="ir.rule">
|
||||
<field name="name">Leads with assigned activities</field>
|
||||
<field ref="model_crm_lead" name="model_id"/>
|
||||
<field name="domain_force">[('activity_ids.user_id','=',user.id)]</field>
|
||||
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_unlink" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record id="crm_rule_all_lead" model="ir.rule">
|
||||
<field name="name">All Leads</field>
|
||||
<field ref="model_crm_lead" name="model_id"/>
|
||||
|
Loading…
Reference in New Issue
Block a user