← Back to team overview

openerp-india team mailing list archive

[Bug 1007703] Re: Can't "group by" the "integer" field

 

Hello,

It has been fixed in this branch lp:~openerp-dev/openobject-server
/trunk-bug-1007703-psa.

Thankz YoU.

** Changed in: openobject-server
       Status: Confirmed => In Progress

** Changed in: openobject-server
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1007703

Title:
  Can't "group by" the "integer" field

Status in OpenERP Server:
  Fix Committed

Bug description:
  In my test model, I defined a integer field, and in "search view" xml,
  I put it in "Group By ..." selection..

  But, It's not work fine....
  What's wrong with it?

  and I caputre the HTTP package

  I found 
  the /res/group/read  json result is:

  {"jsonrpc": "2.0", "id": "r148", "result": [{"week": 22, "__context":
  {"group_by": []}, "week_count": 70, "__domain": [["week", "=",
  1542L]]}, {"week": 23, "__context": {"group_by": []}, "week_count":
  105, "__domain": [["week", "=", 3824L]]}]}

  
  I think the corect result is:

  {"jsonrpc": "2.0", "id": "r148", "result": [{"week": 22, "__context":
  {"group_by": []}, "week_count": 70, "__domain": [["week", "=", 22]]},
  {"week": 23, "__context": {"group_by": []}, "week_count": 105,
  "__domain": [["week", "=", 23]]}]}

  
  and the "1542L" is the sum of "week" integer field.  Not the field's ID...

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1007703/+subscriptions


References