This question has been flagged
1 Reply
3719 Views

This is the same question like here but for the filter.

I want to create a sale report filter that show all product from a category "PACK" and all sub-categories "PACK/Hôtel" or "PACK/Restaurant".

How can I tell to filter function to do this?

Avatar
Discard
Author Best Answer

I've created a filter with child_of operator:

<filter string="Pack" domain="[('categ_id','child_of',5)]"/>

Where 5 is the "Pack" id.

Avatar
Discard

I tried this, but had no luck.