[FIX] set the right field as 'name' field in the portal's contact form

bzr revid: abo@openerp.com-20120725124323-tq9u2mxg8wpvy1zc
This commit is contained in:
Antonin Bourguignon 2012-07-25 14:43:23 +02:00
parent cd2e64ea3e
commit 232c567956
2 changed files with 2 additions and 3 deletions

View File

@ -36,8 +36,7 @@ class crm_contact_us(osv.TransientModel):
Therefore, user #1 will perform the creation until a better workaround
is figured out.
"""
values['name'] = values['contact_name']
print values
values['contact_name'] = values['name']
crm_lead.create(cr, 1, dict(values,user_id=False), context)
"""

View File

@ -15,7 +15,7 @@
<tr>
<td width="70%%">
<div class="oe_portal_crm_contact_form">
<field name="contact_name" placeholder="Name"/>
<field name="name" placeholder="Name"/>
<field name="partner_name" placeholder="Company"/>
<field name="email_from" placeholder="Email"/>
<field name="phone" placeholder="Phone"/>