html - How to put filter on a field in QWEB -


i want put filter on field in qweb such that,when select city "pune" , corresponding pincodes should displayed , not all. here code city , zip

<label class="control-label" for="city">city</label> <select name="city_id" class="form-control">    <option value="">city...</option>    <t t-foreach="cities or []" t-as="city">    <option t-att-value="city.id" t-att-selected="city.id == checkout.get('city')"><t t-esc="city.city_id"/></option>    </t> </select>  <label class="control-label label-optional" for="zip">zip / postal code</label> <select name="zip_id" class="form-control">     <option value="">zip...</option>     <t t-foreach="zips or []" t-as="zip_id">     <option t-att-value="zip_id.id" style="display:none;" t-att-data-city_id="zip_id.city_id"  t-att-selected="zip_id.id == checkout.get('zip_id')"><t t-esc="zip_id.name"/></option>     </t> </select> 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -