c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #20511
Re: [Bug 743890] Re: overwriting read method breaks group by and sort
On Wednesday 30 March 2011, you wrote:
> a similar problem exists for web-client -
> all categories are used for grouping, even if no lines are inside
> but it does not crash opening empty groups
>
> - nevertheless - I think the number of records in a group should be
> displayed like in GTK - this helps
>
Well, the source of the problem is that you've tried to override read(),
instead of doing that to search().
I just fixed the Gtk client not to crash. Then, we would have to find a better
way to limit these zero-quantity products.
--
Say NO to spam and viruses. Stop using Microsoft Windows!
--
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/743890
Title:
overwriting read method breaks group by and sort
Status in OpenERP Web Client:
New
Status in OpenERP Server:
Fix Committed
Bug description:
the attached module retuns only a list of products with qty(s) != 0.0, which IMHO should become a standard - especially important
* as OpenERP can not filter function fields for now
* in multi stock locations the user is mostly only interested to see products in stock at a specific location.
the attached module returns
* all products in the prodct list
* default only products with quantities (on request all) for "Location Structure"
**2 problems
*** click on sort on the name changes the number of lines returned
*** group by catagory -
**** returns catagories of ALL products (WRONG)
**** opening a category with filtered products crashed GTK
Traceback (most recent call last):
File "/sw/home/gass/OpenERP/trunk/openobject-client/6.0/bin/widget/view/list.py", line 307, in on_iter_next
i = node.list_group.lst.index(node) + 1
IMHO the search window does not take into account the reduced set of
data returned by the new read method
References