Merge branch 'master-crm' into 'master'

[REV] crm: allow a user assigned to activity to see lead

See merge request flectra-hq/flectra!31
This commit is contained in:
Parthiv Patel 2018-03-06 05:41:28 +00:00
commit 38f16a6160

View File

@ -27,16 +27,7 @@
<field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field> <field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field>
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
</record> </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"> <record id="crm_rule_all_lead" model="ir.rule">
<field name="name">All Leads</field> <field name="name">All Leads</field>
<field ref="model_crm_lead" name="model_id"/> <field ref="model_crm_lead" name="model_id"/>