dashboard:view_id provided in ir.actions.act_window.view is not taken into consideration.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP sa GTK client R&D |
Bug Description
Steps to reproduce:
Open Purchase dashboard,
press search button at the "monthly purchase category" right side
Some errors will occur (one for every fiscal opened month I guess) , and after that the search purchase window will be presented
Environment Information :
System : Linux-2.
OS Name : posix
Distributor ID: LinuxMint
Description: Linux Mint 10 Julia
Release: 10
Codename: julia
Operating System Release : 2.6.38-
Operating System Version : #201102220910 SMP Tue Feb 22 10:23:10 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : ro_RO.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/lib/
result = ExportService.
File "/usr/lib/
res = fn(db, uid, *params)
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/
assert not groupby or groupby in fields, "Fields in 'groupby' must appear in the list of fields to read (perhaps it's missing in the list view?)"
AssertionError: Fields in 'groupby' must appear in the list of fields to read (perhaps it's missing in the list view?)
Related branches
- Naresh(OpenERP): Disapprove
-
Diff: 63 lines (+20/-6)2 files modifiedbin/modules/gui/window/win_search.py (+2/-2)
bin/widget/view/form_gtk/action.py (+18/-4)
- Naresh(OpenERP): Pending requested
-
Diff: 61 lines (+7/-5)2 files modifiedbin/modules/gui/window/win_search.py (+2/-2)
bin/widget/view/form_gtk/action.py (+5/-3)
affects: | openobject-server → openobject-addons |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
summary: |
- error in the purchase dashoard after pressing the serarch button + dashboard:view_id provided in ir.actions.act_window.view is not taken + into consideration. |
Changed in openobject-client: | |
status: | Confirmed → Fix Committed |
Let me reassign this to GTK client project, as I think this is a client-side issue.
The error comes because the wrong "tree" view is used a when you open the action from the dashboard in GTK client.
If you do the same in web client, you won't get the error, because web client does not have this bug (BTW web client will open the graph view first, but you can also switch to list view manually).
Basically the GTK client should respect the view_ids that are specified in the action that is displayed in the dashboard. Currently it only respects the main view_id, but not the view_ids for other view_modes that are specified on the action. Therefore it requests "any tree view" when you click on the magnifying glass.. and sometimes this will be a bad view, depending on the random order in postgres.
This is the same behavior as for regular actions, such as actions invoked from menu items.
Note: this bug cannot be reproduced 100% of the time because it depends on the random natural order of views in the postgres database. To force it to occur you can manually change the sequence number of an incorrect view, for example set sequence 10 on the view named "qty.per. product. tree", and you will reproduce it for sure.