[FIX] website_sale: shiping and invoicing data in red (required) are agressive even the first time

bzr revid: chm@openerp.com-20140115131716-zj38n7pl3pnmdzpd
This commit is contained in:
Christophe Matthieu 2014-01-15 14:17:16 +01:00
parent 2d659d5102
commit c7bf7ad759
2 changed files with 1 additions and 5 deletions

View File

@ -491,10 +491,6 @@ class Ecommerce(http.Controller):
shipping_partner = orm_partner.browse(cr, SUPERUSER_ID, shipping_ids[0], context)
checkout.update(info.from_partner(shipping_partner, address_type='shipping'))
for field_name in info.mandatory_fields():
if not checkout[field_name]:
error[field_name] = 'missing'
return request.website.render("website_sale.checkout", values)
@website.route(['/shop/confirm_order/'], type='http', auth="public", multilang=True)

View File

@ -746,7 +746,7 @@
<label class="control-label" for="contact_name">Email</label>
<input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
</div>
<div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6">
<div t-attf-class="form-group #{error.get('phone') and 'has-error' or ''} col-lg-6">
<label class="control-label" for="phone">Phone</label>
<input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
</div>