c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06037
[Bug 682421] Re: TypeError: read_group() takes at most 9 arguments (10 given)
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.
--
TypeError: read_group() takes at most 9 arguments (10 given)
https://bugs.launchpad.net/bugs/682421
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: New
Bug description:
Server side information:
addons/: revno: 3969
addons-community/: revno: 282
addons-extra/: revno: 5156
server/: revno: 3050
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)
References