[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:
parent
cd2e64ea3e
commit
232c567956
|
@ -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)
|
||||
|
||||
"""
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in New Issue