[IMP] website_sale: Added Street2 field in frontend

This commit is contained in:
hza
2016-11-04 10:47:23 +01:00
committed by Yannick Tivisse
parent cbc760acb8
commit d250ad25b4
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
<value>res.partner</value>
<value eval="[
'name', 'phone', 'email',
'city', 'zip', 'street', 'state_id', 'country_id',
'city', 'zip', 'street', 'street2', 'state_id', 'country_id',
'vat', 'company_name'
]"/>
</function>
+4
View File
@@ -1201,6 +1201,10 @@
<label class="control-label" for="street">Street <span class="hidden-xs"> and Number</span></label>
<input type="text" name="street" class="form-control" t-att-value="'street' in checkout and checkout['street']" />
</div>
<div t-attf-class="form-group #{error.get('street2') and 'has-error' or ''} col-md-12 div_street2">
<label class="control-label" for="street2">Street 2</label>
<input type="text" name="street2" class="form-control" t-att-value="'street2' in checkout and checkout['street2']" />
</div>
<div class="clearfix" />
<t t-set='zip_city' t-value='country and [x for x in country.get_address_fields() if x in ["zip", "city"]] or ["city", "zip"]'/>
<t t-if="'zip' in zip_city and zip_city.index('zip') &lt; zip_city.index('city')">