Hi all. Maybe someone could provide a solution:
Is it possible to use a many2many field in the "Group by" of a search view?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all. Maybe someone could provide a solution:
Is it possible to use a many2many field in the "Group by" of a search view?
I've tried and it's not possible.
After thinking a while I understood why. Let me explain my theory:
A belongs to categ1 categ2
B belongs to categ 2 categ 3
C belongs to categ1 categ 3
Okay if you list this three items:
But if you try to group them by categ. You'll have to repeat A two times B two times and C two times. Group doesn't intend to repeat data it just group the data into sets without common data.
If group worked on many2many it'll do something like this.
Because it'll show only once the registry and it'll catch them by priority.
Anyways this doesn't work. So if you want to group a many2many you have to do it by python code it's a little bit complicated but I think that there is a way to do it.
Hi Ghanshyam, thanks for reply. But i have no problems with filtering by many2many field, i have a problem with grouping by many2many.
Hi Nazarii, If your problem is solved, then please mark my answer as solved.
Hi again, my problem is not solved as the answer is not related to my question.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
lip 25
|
1381 | |||
|
Search a message
Rozwiązane
|
1
lut 25
|
1788 | ||
|
0
wrz 23
|
2698 | |||
|
2
cze 23
|
4771 | |||
|
1
sie 22
|
13463 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Very good question. In particular, I would really like to see my Partners grouped by Category / v7 Tags ...