overwriting read method breaks group by and sort
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Low
|
OpenERP's Framework R&D | ||
Odoo Web Client |
Won't Fix
|
Undecided
|
Unassigned |
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/
i = node.list_
IMHO the search window does not take into account the reduced set of data returned by the new read method
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 20 lines (+4/-3)1 file modifiedbin/widget/view/list.py (+4/-3)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-server: | |
status: | Confirmed → Fix Committed |
Changed in openobject-server: | |
status: | Fix Committed → New |
Changed in openobject-client-web: | |
assignee: | nobody → OpenERP SA's Web Client R&D (openerp-dev-web) |
status: | New → Triaged |
On Monday 28 March 2011, you wrote:
> Public bug reported:
>
> **** opening a category with filtered products crashed GTK gass/OpenERP/ trunk/openobjec t-client/ 6.0/bin/ widget/ view/list. py group.lst. index(node) + 1
> "/sw/home/
> ", line 307, in on_iter_next i = node.list_
Hello Dr,
It may be the same problem that I have fixed two weeks ago about that method:
If so, you should check your function for duplicate IDs.