[IMP] add uid in the context, so the default salesman is properly set to the current user (when a opportunity is created through this action)

bzr revid: abo@openerp.com-20121115181045-fzttb2av7nrmment
This commit is contained in:
Antonin Bourguignon 2012-11-15 19:10:45 +01:00
parent 1158cff945
commit 9c909e55fc
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@
<field name="res_model">crm.lead</field>
<field name="view_mode">kanban,tree,graph,form,calendar</field>
<field name="domain">[('type','=','opportunity')]</field>
<field name="context">{'stage_type': 'opportunity', 'default_type': 'opportunity'}</field>
<field name="context">{'stage_type': 'opportunity', 'default_type': 'opportunity', 'default_user_id': uid}</field>
<field name="view_id" eval="False"/>
<field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
<field name="help" type="html">