Hi !
I'm doing a search to create a qweb page displaying products and size variants.
I want to have variants sorted by attribute sequence !!
the query in .py file :
produits=request.env['product.template'].search([],0,200,'id desc ')
in Xml views, I unsuccessfully tried :
<t t-set="attribute" t-value="my_query.product_variant_ids" t-options="{'order by': 'sequence'}"/>
and I use a loop to display them
<t t-foreach="attribute" t-as="size">
Can anyone explain how to do it