[IMP] crm: add sales person and team on partner created from lead form view

When we create a partner on lead form view, the user and team are
propagated to the created partner, while they do not when we do the
same from lead kanban using quick create.

With this commit, user (salesperson) and team are propagated to the
partner created through lead kanban (quick create) as well.

Task ID-2446969
PR #65846

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Nikunj Ladava
2021-03-03 08:30:50 +00:00
committed by Thibault Delavallée
parent ee30ecef0d
commit af1b3df986
+2
View File
@@ -428,6 +428,8 @@
'default_company_name': type == 'opportunity' and partner_name,
'default_phone': phone,
'default_email': email_from,
'default_user_id': user_id,
'default_team_id': team_id,
'show_vat': True}"/>
<field name="name" placeholder="e.g. Product Pricing" />
<field name="email_from" string="Email" />