summaryrefslogtreecommitdiff
path: root/addons/crm/views
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-07-02 10:39:50 +0000
committerMartin Trigaux <mat@odoo.com>2020-08-17 09:08:22 +0000
commite6e0eafccd483e2b002b45b514181c8ce4238b0d (patch)
treeeaaac296e9b1ccc930f172203b8fcd6a8ee14e75 /addons/crm/views
parentf0d37c384b299e5f35cddda02d3f56c6ad37a9a7 (diff)
[FIX] *: add groups_id where needed
To trigger a run of a server action, one must have a group specified or a write access on the model. CRM: only access lead, crm.team is readable by employees Website: all users can access, action_dashboard_redirect takes care of the group
Diffstat (limited to 'addons/crm/views')
-rw-r--r--addons/crm/views/crm_lead_views.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml
index 82ff08fc5dc..68d24df7cec 100644
--- a/addons/crm/views/crm_lead_views.xml
+++ b/addons/crm/views/crm_lead_views.xml
@@ -981,6 +981,7 @@ if record:
<field name="name">Crm: My Pipeline</field>
<field name="model_id" ref="crm.model_crm_team"/>
<field name="state">code</field>
+ <field name="groups_id" eval="[(4, ref('base.group_user'))]"/>
<field name="code">action = model.action_your_pipeline()</field>
</record>