From f40ac3ebd53f446dfee00d98c7ee54ace458ae10 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Mon, 12 Nov 2012 18:46:31 +0100 Subject: [PATCH] [WIP] enrich the context with all the lead's contact information to ease the partner creation bzr revid: abo@openerp.com-20121112174631-3x567l4mgmpf72l9 --- addons/crm/crm_lead_view.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 4e4f9239357..0d983db8af9 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -152,8 +152,11 @@ + + on_change="on_change_partner(partner_id)" + options='{"create_name_field": "name"}' + context="{'name': contact_name, 'street': street, 'city': city, 'state_id': state_id, 'zip': zip, 'country_id': country_id, 'function': function, 'phone': phone, 'mobile': mobile, 'fax': fax, 'email': email, 'user_id': user_id, 'section_id': section_id}"/>