TypeError: read_group() takes at most 9 arguments (10 given)

Bug #682421 reported by OpenBMS JSC
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
High
OpenERP's Framework R&D

Bug Description

Steps to produce this error:
1) Login as Administrator
2) Navigate to Administration => Modules => Modules
3) Open list of modules, and click on "Group by"
4) Select 1 option, e.g. State (see attached image)

Server side information:
addons/: revno: 3969
addons-community/: revno: 282
addons-extra/: revno: 5156
server/: revno: 3050

Client side information:
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1702 launchpad_translations_on_behalf_of_openerp-20101128044954-223uy11ouumt2nkx

Environment Information :
System : Linux-2.6.32-26-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-26-generic
Operating System Version : #47-Ubuntu SMP Wed Nov 17 15:58:05 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_AU.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1702 launchpad_translations_on_behalf_of_openerp-20101128044954-223uy11ouumt2nkx
Traceback (most recent call last):
  File "/var/local/software/openerp-v6.0dev/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/var/local/software/openerp-v6.0dev/server/bin/service/web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "/var/local/software/openerp-v6.0dev/server/bin/addons/base_module_record/base_module_record.py", line 41, in execute
    res = super(recording_objects_proxy, self).execute(*args, **argv)
  File "/var/local/software/openerp-v6.0dev/server/bin/osv/osv.py", line 119, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/var/local/software/openerp-v6.0dev/server/bin/osv/osv.py", line 203, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/var/local/software/openerp-v6.0dev/server/bin/osv/osv.py", line 193, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
TypeError: read_group() takes at most 9 arguments (10 given)

OpenBMS JSC (openbmsjsc)
affects: openobject-client → openobject-addons
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Can you describe the steps to get this error?

Revision history for this message
John B (johnb-ca) wrote :

I'm getting the same issue using any group_by with the GTK client. It does not happen in the web client. For me, it looks like an extra argument is being sent to read_group() by os_pool.execute_cr(). Selecting group by Manager in projects, for example, here's what is being sent:

([('state', 'in', ('open', 'pending'))], ['user_id', 'name', 'sequence', 'progress_rate', 'total_hours', 'state', 'parent_id', 'date', 'planned_hours', 'partner_id', 'effective_hours'], ['user_id'], 0, False, {'construction_project_id': False, 'lang': u'en_US', 'active_ids': [242], 'tz': False, 'active_model': 'ir.ui.menu', 'section_id': False, 'active_id': 242, 'trade_id': False, 'group_by': ['user_id'], 'search_default_Current': 1, 'project_id': False, 'department_id': False}, False)

The extra argument is the 'False' at the end.

Looks like this may be a GTK client issue, though the reporter would need to confirm.

OpenBMS JSC (openbmsjsc)
description: updated
Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

screen shot for the issue

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

I confirm this bug at revno 3050.

Changed in openobject-addons:
status: New → Confirmed
affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

This is due to a feature introduce in GTK, and which had not been yet merged in the server-side.
This now works after the corresponding server-side merge in revision 3052 rev-id: <email address hidden>
Sorry for the inconvenience, and thanks for reporting!

Changed in openobject-server:
milestone: none → 6.0-rc2
status: In Progress → Fix Released
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

This has been fixed from <email address hidden> revision.

Thanks.

Changed in openobject-server:
milestone: 6.0-rc2 → none
Changed in openobject-server:
milestone: none → 6.0-rc2
Revision history for this message
filsys (office-filsystem) wrote :

I'm getting this issue with:
Last revision No. & ID :1719 launchpad_translations_on_behalf_of_openerp-20101214045608-vcpkiiogff0hs0gx

This is a regresion?

Thanks.

Changed in openobject-server:
status: Fix Released → New
Revision history for this message
Jamin Shah(OpenERP) (jamin-openerp) wrote :

Steps to reproduce:

1. Create new user
2. Login as newly created user, Above mention traceback will appear.

Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Please everyone, I just double-checked, and this is working fine.

Just make sure you are using *both* the latest GTK client (or web) *and* the latest server.
That is, at least the following revisions:

 server: 3052 or later
 GTK: 1720 or later

Please do not reopen this bug unless you are sure both are up to date.

Changed in openobject-server:
status: Confirmed → Fix Released
Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

I do not experience this with GTK on Linux any more, but the Windows client (v6.0.0-rc1) still has problem. Please advise how to update the Windows client, or do I have to wait for rc2?

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.