Sunday, September 27, 2020

show selection field on webpage

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>
</select>

No comments:

Post a Comment

Odoo Invoice Qr code issues

There are two main issues must of us facing with the QR code in Odoo invoice & these issues are 1/ QR code displayed as broken image w...