← Back to team overview

openerp-india team mailing list archive

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

 

Public bug reported:

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...

** Affects: openobject-server
     Importance: Undecided
         Status: New


** Tags: field group integer mrshelly

-- 
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:
  New

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


Follow ups

References