[IMP] website_sale: add vat field on checkout
This commit is contained in:
@@ -310,7 +310,7 @@ class website_sale(http.Controller):
|
||||
return values
|
||||
|
||||
mandatory_billing_fields = ["name", "phone", "email", "street", "city", "country_id", "zip"]
|
||||
optional_billing_fields = ["street2", "state_id"]
|
||||
optional_billing_fields = ["street2", "state_id", "vat"]
|
||||
mandatory_shipping_fields = ["name", "phone", "street", "city", "country_id", "zip"]
|
||||
optional_shipping_fields = ["state_id"]
|
||||
|
||||
|
||||
@@ -704,6 +704,11 @@
|
||||
<label class="control-label" for="street2" style="font-weight: normal">Company Name</label>
|
||||
<input type="text" name="street2" class="form-control" t-att-value="checkout.get('street2')"/>
|
||||
</div>
|
||||
<div class="col-lg-6"> </div>
|
||||
<div t-attf-class="form-group #{error.get('vat') and 'has-error' or ''} col-lg-6">
|
||||
<label class="control-label" for="vat" style="font-weight: normal">VAT Number</label>
|
||||
<input type="text" name="vat" class="form-control" t-att-value="checkout.get('vat')"/>
|
||||
</div>
|
||||
<div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
|
||||
<label class="control-label" for="contact_name">Email</label>
|
||||
<input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
|
||||
|
||||
Reference in New Issue
Block a user