[6.0/trunk] GTK : Group By on Boolean Field doesn't work!
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) | Status tracked in Trunk | |||||
6.0 |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team | |||
Trunk |
Fix Released
|
Medium
|
OpenERP sa GTK client R&D |
Bug Description
When you have a boolean field and you wish to apply groupby on it, it doesn't work.
The logical impact should be : 2 sets of records, one with TRUE and another with FALSE.
With current code, the symbol on top level record seems always to be TRUE.
As a matter of the fact, its due to the code which manipulates the values to be bool(value) everytime whereas the result of group by may return False as (False(3)) where 3 is the no. of records.
But system understands bool(False(3)) as True because the evaluator is a string.
Please find the attached branches(for 6.0 and trunk) which fixes the issue.
As an example : One can test with 'Group by Customer' on Partner Model.
Thanks,
Serpent Consulting Services.
Related branches
- Naresh(OpenERP) (community): Approve
-
Diff: 15 lines (+4/-0)1 file modifiedbin/widget/view/tree_gtk/parser.py (+4/-0)
- Naresh(OpenERP): Needs Fixing
-
Diff: 15 lines (+5/-0)1 file modifiedbin/widget/view/tree_gtk/parser.py (+5/-0)
tags: | added: maintenance |
Hello,
Thanks for reporting !
The fix has been merged @ trunk client with some improvements @ revision-info 1983 <email address hidden>
Thanks,