[PS] Product margin : "group by" doesn't work

Bug #719223 reported by Francois Pietquin (OpenERP)
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 2

Bug Description

6.0.1
Web and GTK client

- Install "product_margin" module.
- Sales>Products>Product Margins : in the list view, try to group transactons by Category, UOM or type.
- A system error pops up and no more information is displayed.

François Pietquin
OpenERP Professional Services

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Found the following traceback on server side.
So I am confirming this issue .

Traceback (most recent call last):
  File "/home/tiny/workspace/stable-6/openobject-server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/tiny/workspace/stable-6/openobject-server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/tiny/workspace/stable-6/openobject-server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/tiny/workspace/stable-6/openobject-server/bin/osv/orm.py", line 2158, in read_group
    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?)

Thanks

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
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Hello francois,

It is now fixed in lp:~openerp-commiter/openobject-addons/dev-addons2-rha1 with

Revision ID: <email address hidden>
Revision no: 4501

Regards.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks for the fix Rifakat Haradwala (OpenERP),
It has been ported to stable 6.0.1 by revision 4413 <email address hidden> authored to you.

Changed in openobject-addons:
milestone: none → 6.0.2
Revision history for this message
Yusuf Hasanmiyan (yusufhm) wrote :

Can we have details on the fix applied to this bug please? I'm having what can be considered a similar bug to this one, but since I'm already using 6.0.1, it should have been solved.

My issue currently occurs with the objects in the Sales modules mainly; it is to be noted that it was working at some point, and I don't know what I or someone else did to make it stop working.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.