c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #35005
[Bug 876619] [NEW] [6.0/trunk] GTK : Group By on Boolean Field doesn't work!
Public bug reported:
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.
** Affects: openobject-client
Importance: Undecided
Status: New
** Branch linked: lp:~serpent-consulting-services/openobject-client/gtk-
groupby-boolean-6.0
** Branch linked: lp:~serpent-consulting-services/openobject-client/gtk-
groupby-boolean-6.1
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/876619
Title:
[6.0/trunk] GTK : Group By on Boolean Field doesn't work!
Status in OpenERP GTK Client:
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/876619/+subscriptions
Follow ups
References