[FIX] sale_crm: create "customer" partner when converting leads to quotations
When creating a new partner on the fly at lead convert time we should created a customer-oriented partner. This is done through the use of a specific ``res_partner_search_mode`` context key allowing to handle creation of a partner flagged as "customer". closes odoo/odoo#75572 X-original-commit: 7d4d3d8f6582f23cf890aa2ba4d841702e4f3f89 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
</group>
|
||||
<group attrs="{'invisible': [('action','!=','exist')], 'required':[('action', '=','exist')]}">
|
||||
<group>
|
||||
<field name="partner_id" attrs="{'invisible': [('action','!=','exist')], 'required':[('action', '=','exist')]}"/>
|
||||
<field name="partner_id" attrs="{'invisible': [('action','!=','exist')], 'required':[('action', '=','exist')]}"
|
||||
context="{'res_partner_search_mode': 'customer'}" />
|
||||
</group>
|
||||
</group>
|
||||
<footer>
|
||||
|
||||
Reference in New Issue
Block a user