← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 673900] [NEW] "object not iterable error" in nan_account_statement_of_accounts

 

Public bug reported:

Sometimes, on the 5.0.15 GTK client (does not happen on Koo client), if
the module nan_account_statement_of_accounts is installed, the next
error is raised when looking for accounts:

Traceback (most recent call last):
  File "widget\view\form_gtk\parser.pyo", line 148, in button_clicked
  File "modules\action\main.pyo", line 132, in _exec_action
  File "modules\gui\window\__init__.pyo", line 51, in create
  File "modules\gui\window\form.pyo", line 137, in __init__
  File "widget\screen\screen.pyo", line 205, in search_filter
  File "rpc.pyo", line 149, in rpc_exec_auth_try
  File "rpc.pyo", line 113, in exec_auth
  File "rpc.pyo", line 119, in execute
  File "tiny_socket.pyo", line 81, in myreceive
tiny_socket.Myexception: ("'long' object is not iterable", 'Traceback (most
recent call last):\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 299,
in dispatch\n    result = LocalService(service_name)(method, *params)\n
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line
77, in __call__\n    return getattr(self, method)(*params)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
line 577, in execute\n    res = service.execute(db, uid, object, method,
*args)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 58,
in wrapper\n    return f(self, dbname, *args, **kwargs)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
119, in execute\n    res = pool.execute_cr(cr, uid, obj, method, *args,
**kw)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
111, in execute_cr\n    return getattr(object, method)(cr, uid, *args,
**kw)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line
1416, in search_count\n    res = self.search(cr, user, args,
context=context, count=True)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/nan_account_statement_of_accounts/account_wizard.py",
line 134, in search\n    ids = \',\'.join( [str(int(x)) for x in ids]
)\nTypeError: \'long\' object is not iterable\n')


It looks like nan_account_statement_of_accounts redefines the search for accounts, and it does not expect "ids" to be a single number.

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

-- 
"object not iterable error" in nan_account_statement_of_accounts
https://bugs.launchpad.net/bugs/673900
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:
Sometimes, on the 5.0.15 GTK client (does not happen on Koo client), if the module nan_account_statement_of_accounts is installed, the next error is raised when looking for accounts:

Traceback (most recent call last):
  File "widget\view\form_gtk\parser.pyo", line 148, in button_clicked
  File "modules\action\main.pyo", line 132, in _exec_action
  File "modules\gui\window\__init__.pyo", line 51, in create
  File "modules\gui\window\form.pyo", line 137, in __init__
  File "widget\screen\screen.pyo", line 205, in search_filter
  File "rpc.pyo", line 149, in rpc_exec_auth_try
  File "rpc.pyo", line 113, in exec_auth
  File "rpc.pyo", line 119, in execute
  File "tiny_socket.pyo", line 81, in myreceive
tiny_socket.Myexception: ("'long' object is not iterable", 'Traceback (most
recent call last):\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 299,
in dispatch\n    result = LocalService(service_name)(method, *params)\n
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line
77, in __call__\n    return getattr(self, method)(*params)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
line 577, in execute\n    res = service.execute(db, uid, object, method,
*args)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 58,
in wrapper\n    return f(self, dbname, *args, **kwargs)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
119, in execute\n    res = pool.execute_cr(cr, uid, obj, method, *args,
**kw)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line
111, in execute_cr\n    return getattr(object, method)(cr, uid, *args,
**kw)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line
1416, in search_count\n    res = self.search(cr, user, args,
context=context, count=True)\n  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/nan_account_statement_of_accounts/account_wizard.py",
line 134, in search\n    ids = \',\'.join( [str(int(x)) for x in ids]
)\nTypeError: \'long\' object is not iterable\n')


It looks like nan_account_statement_of_accounts redefines the search for accounts, and it does not expect "ids" to be a single number.





Follow ups

References