Skip to Content
Menu
This question has been flagged
1 Reply
5160 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.

Related Posts Replies Views Activity
0
Mar 15
3223
4
Aug 25
2894
1
Jan 25
3993
4
Feb 24
12779
4
Dec 22
9503