Hello Community ,I'm facing a probleme ,i want to create an invoice wich show the list of product sales grouped by category
i tried this
<t t-foreach="o.order_line" t-as="l">
<t t-if="l.product_id.categ_id">
<tr> <td>
<span t-field="l.product_id.categ_id"/>
</td> </tr> </t>
but dosen't groub all products it show this result:
category 1
product 1
category 1
product 2
i want this resulat
category 1
product 1
product 2
etc ...
thanks in advance
Thanks