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.

2

group sales by partner category

By
Drew Dixon
on 5/10/13, 10:16 PM 1,528 views

Using version 6.1.1 and I have assigned partners into various categories based on location and now I want to try and see the sales based on these categories. When I am in the sales order list view there does not seem to be any option to group via partner categories. I have tried to add a new group by filter, but the partner category does not seem to be available.

Is there a way to do this?

I have the same need for version 7, I'm looking for a solution ... and if I find, I share it.

Michel Hugues
on 10/10/13, 5:45 AM
0

IBS

--IBS--
1302
| 4 5 8
Tétouan, Morocco
--IBS--

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

IBS
On 10/10/13, 1:55 PM

You can't group by a many2many field. Some similar question:

https://accounts.openerp.com/forum/Help-1/question/22335/

My advise to you is to add a new one_category_id many2one field linked to the res.partner.category model and put it in your partner view.

Then add a new filter to your search view :

<filter string="Category" context="{'group_by': 'one_category_id'}"/>

The difference is that in this case you can only specify one category per partner.

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: 5/10/13, 10:16 PM
Seen: 1528 times
Last updated: 3/16/15, 8:10 AM