Skip to content
Permalink
Browse files

[FIX] crm: no context default user crm.lead

default_user_id on the crm.lead window actions is not needed since the
current user is already the default on the field.

So all it does is prevent user-defined values to work and possibly
affect custom code that may not expect the behavior.

opw-1938037
closes #31151
  • Loading branch information...
nle-odoo committed Feb 15, 2019
1 parent 68a37f2 commit d766f4f00b20711aec86c02a9ce7f39ebdfedb0f
Showing with 0 additions and 2 deletions.
  1. +0 −2 addons/crm/views/crm_lead_views.xml
@@ -833,7 +833,6 @@ for rec in records:
<field name="domain">[('type','=','opportunity')]</field>
<field name="context">{
'default_type': 'opportunity',
'default_user_id': uid
}
</field>
<field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
@@ -884,7 +883,6 @@ for rec in records:
<field name="domain">[('type','=','opportunity')]</field>
<field name="context">{
'default_type': 'opportunity',
'default_user_id': uid,
'search_default_assigned_to_me': 1,
}</field>
<field name="view_ids"

0 comments on commit d766f4f

Please sign in to comment.
You can’t perform that action at this time.