Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Filter sale.line on product categories give all product in sub-categories.

By
Bonnet Denis
on 7/2/13, 6:56 AM 1,030 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?

0

Bonnet Denis

--Bonnet Denis--
925
| 5 6 8
Vannes, France
--Bonnet Denis--

Engeneer at MGS Consulting Ouest at Vannes, FRANCE

Bonnet Denis
On 7/3/13, 8:00 AM

I've created a filter with child_of operator:

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

Where 5 is the "Pack" id.

I tried this, but had no luck.

Andrew
on 2/14/14, 1:26 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 7/2/13, 6:56 AM
Seen: 1030 times
Last updated: 3/16/15, 8:10 AM