[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:
parent
2d659d5102
commit
c7bf7ad759
|
@ -491,10 +491,6 @@ class Ecommerce(http.Controller):
|
||||||
shipping_partner = orm_partner.browse(cr, SUPERUSER_ID, shipping_ids[0], context)
|
shipping_partner = orm_partner.browse(cr, SUPERUSER_ID, shipping_ids[0], context)
|
||||||
checkout.update(info.from_partner(shipping_partner, address_type='shipping'))
|
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)
|
return request.website.render("website_sale.checkout", values)
|
||||||
|
|
||||||
@website.route(['/shop/confirm_order/'], type='http', auth="public", multilang=True)
|
@website.route(['/shop/confirm_order/'], type='http', auth="public", multilang=True)
|
||||||
|
|
|
@ -746,7 +746,7 @@
|
||||||
<label class="control-label" for="contact_name">Email</label>
|
<label class="control-label" for="contact_name">Email</label>
|
||||||
<input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
|
<input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
|
||||||
</div>
|
</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>
|
<label class="control-label" for="phone">Phone</label>
|
||||||
<input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
|
<input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue