Hi,
is there a way to group by a field in a search view in a case insensitive way?
i.e. grouping "leo" and "Leo" together.
Thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
is there a way to group by a field in a search view in a case insensitive way?
i.e. grouping "leo" and "Leo" together.
Thanks!
AFAIK you have to redefine ``read_group`` to fit your needs.
Nicolas is right: to do that I have to change read_group. It is a big method with no hooks, so the solution for now has been to copy all of it in my module and add a few lines similar to those the handle dates in the original code.
Date handling in the original is somewhat similar: dates from the same month are grouped together, while I wanted to group together string fields that are equal ignoring case.
That has been refactored in trunk to be hookable.
Thanks!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
May 24
|
1550 | ||
|
1
Jul 21
|
2596 | ||
|
0
Apr 16
|
4078 | ||
|
1
May 15
|
3818 | ||
|
0
Jan 25
|
2025 |