[FIX] add 'default_' in the context's dictionnary to properly load the default values in the partner wizard

bzr revid: abo@openerp.com-20121115170159-w7vhthrgrigsx484
This commit is contained in:
Antonin Bourguignon 2012-11-15 18:01:59 +01:00
parent 6974be3d6d
commit 0fe52dce5e
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@
<field name="partner_id" string="Customer"
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}"/>
context="{'default_name': contact_name, 'default_street': street, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_function': function, 'default_phone': phone, 'default_mobile': mobile, 'default_fax': fax, 'default_email': email_from, 'default_user_id': user_id, 'default_section_id': section_id}"/>
<label for="street" string="Address"/>
<div>
<field name="street" placeholder="Street..."/>