openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #24943
[Bug 1219024] Re: [7.0]: do_partial() from class stock_picking causes error
** Patch added: "stock.patch"
https://bugs.launchpad.net/openobject-addons/+bug/1219024/+attachment/3795711/+files/stock.patch
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1219024
Title:
[7.0]: do_partial() from class stock_picking causes error
Status in OpenERP Addons (modules):
New
Bug description:
if the method do_partial() from the class stock_picking is called by
an xmlrpc client, it causes the following error:
exception 'Zend_XmlRpc_Client_FaultException' with message 'Traceback (most recent call last):
File "/opt/openerp/server/openerp/service/wsgi_server.py", line 83, in xmlrpc_return
response = xmlrpclib.dumps((result,), methodresponse=1, allow_none=False, encoding=None)
File "/usr/lib/python2.7/xmlrpclib.py", line 1085, in dumps
data = m.dumps(params)
File "/usr/lib/python2.7/xmlrpclib.py", line 632, in dumps
dump(v, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
f(self, value, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 733, in dump_struct
raise TypeError, "dictionary key must be string"
TypeError: dictionary key must be string
' in Zend\XmlRpc\Client.php:381
because of this line:
res[pick.id] = {'delivered_picking': delivered_pack.id or False}
it must be:
res[str(pick.id)] = {'delivered_picking': delivered_pack.id or False}
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1219024/+subscriptions
References