Odoo 17 Development Book - Combining recordsets

Combining records

In the search view, the group by operation allows you to categorize records based on a specific field. Instead of repeatedly selecting "Add Custom Group," you can utilize the search tag's group tag to automatically implement grouping conditions.

<group expand="1" string="Group By">
    <filter string="Product Type" name="type" 
    context="{'group_by':'type'}">
</group>
odoo-development
WhatsApp