ODOO
To explain how to show selection field on your webpage as we did in the image, let us say that we have created web page or we want to show new selection field on our odoo website shop "we add new selection field to our products and we want to show it on shop page"
so we can show our field just as below
<select class="form-control" name="category">
<t t-foreach="product.sale_units_ids" t-as="category">
<option t-attf-value="#{category.id}"><t t-esc="category.name"/> </option>
</t>
<t t-foreach="product.sale_units_ids" t-as="category">
<option t-attf-value="#{category.id}"><t t-esc="category.name"/> </option>
</t>
</select>
No comments:
Post a Comment