[FIX] Move required to the view.

bzr revid: vta@openerp.com-20121116103048-0ervln9ekqly89qx
This commit is contained in:
vta vta@openerp.com
2012-11-16 11:30:48 +01:00
parent e92a31e2bb
commit ed3c46aa6f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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),
}
+2 -2
View File
@@ -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">