Hi everybody,
I am creating a filter avec the context based on the many2one field but I get an error.
More details : I would like to get a list of task works and group them by task_id and project_id.
- So I created a menu item and search view based on project.task.work model.
- This model has task_id field so I created the filter based on it and everything is going correctly
- But the object doesn't have project_id field so when I try do write a filter base on project_id like this:
<filter string="Project" name="project" icon="terp-folder-violet" context="{'group_by':'task_id._project_id'}"/>
I get this error :
AssertionError: Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True
Any help?
thanks