[FIX] Move required to the view.
bzr revid: vta@openerp.com-20121116103048-0ervln9ekqly89qx
This commit is contained in:
@@ -28,8 +28,8 @@ class crm_contact_us(osv.TransientModel):
|
||||
_description = 'Contact form for the portal'
|
||||
_inherit = 'crm.lead'
|
||||
_columns = {
|
||||
'subject' : fields.char('Subject', required=True),
|
||||
'body' : fields.text('Content', required=True),
|
||||
'subject' : fields.char('Subject'),
|
||||
'body' : fields.text('Content'),
|
||||
'company_ids' : fields.many2many('res.company', string='Companies', readonly=True),
|
||||
}
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
<field name="partner_name" invisible="1"/>
|
||||
<field name="email_from" invisible="1"/>
|
||||
<field name="phone" nolabel="1" placeholder="Your phone number..."/>
|
||||
<field name="subject" nolabel="1" placeholder="Subject..." colspan="6"/>
|
||||
<field name="body" nolabel="1" placeholder="Content..." colspan="6"/>
|
||||
<field name="subject" nolabel="1" placeholder="Subject..." colspan="6" required="1"/>
|
||||
<field name="body" nolabel="1" placeholder="Content..." colspan="6" required="1"/>
|
||||
<button string="Submit" name="submit" type="object"/>
|
||||
</group>
|
||||
<group class="oe_portal_crm_office">
|
||||
|
||||
Reference in New Issue
Block a user