Hi:
I'm using Odoo 12 Enterprise. I was wondering if it's posible to add a group by filter by more than 1 field, something like this:
<filter string="My Filter" name="my_filter" context="{'group_by':['field_1','field_2']}"/>
I tried it this way and it did not work, Odoo Views Documentation refers in the filter section:
context
a Python dictionary, merged into the action’s domain to generate the search domain
The key
group_by
can be used to define a groupby available in the ‘Group By’ menu. The ‘group_by’ value can be a valid field name or a list of field names.
Idea:
1- You can create a computed field and concatenate two or more fields and return to that computed field.
2- Make that computed field store=True