c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #29541
[Bug 785677] Re: Can not create several group_by filters on the same field(s)
merged fix at trunk client with revision-info:1932
nch@xxxxxxxxxxx-20110729085335-3hthg8tz98kbnbv3
** Changed in: openobject-client
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/785677
Title:
Can not create several group_by filters on the same field(s)
Status in OpenERP GTK Client:
Fix Released
Bug description:
Tried creating two filters applying a group_by involving similar
fields (one group_by had a single field, one had two).
In the GTK client, the filters don't behave correctly: the grouping by
of the common field is only available on one of the filters, not both.
Provided file is a test case with demo data:
* Unpack and put in addons directory
* Create new database (addon is marked as active currently, so it will automatically install no need to install manually)
* Open "ListView Testing Module" > "Open list"
Here, you can see three filters in a "group by" group. They all have a group_by context with the following values, respectively:
* {'group_by': ['someval', 'category']}
* {'group_by': 'category'}
* {'group_by': 'someval'}
So the first filter should group by someval and category, the second
filter should group by category and the third filter should group by
someval.
The failure modes are variable and I have not yet managed to understand which circumstances caused failure (it does not seem to match the order of the filters in the view, might be linked to the iteration order for some dictionary), currently on my machine:
* The first filter only groups on the someval field (category missing)
* The second filter correctly groups on category
* The third filter does not do anything
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/785677/+subscriptions
References