stock_picking.action_invoice_create: calling by xmlrpc raises TypeError
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP's Framework R&D | |||
OpenERP Community Backports (Server) | Status tracked in 7.0 | |||||
6.1 |
Fix Released
|
Medium
|
Yann Papouin | |||
7.0 |
Fix Released
|
Medium
|
Yann Papouin |
Bug Description
Hello,
When the action_
*********** OpenERP Server ERROR ***********
dictionary key must be string
Traceback (most recent call last):
File "/home/
response = xmlrpclib.
File "/usr/lib/
data = m.dumps(params)
File "/usr/lib/
dump(v, write)
File "/usr/lib/
f(self, value, write)
File "/usr/lib/
raise TypeError, "dictionary key must be string"
TypeError: dictionary key must be string
*
The action is performed correctly, though. And the web client probably ignores the errors. But it is very disturbing when scripting OpenERP to run tests.
I'm reporting this on openobject-addons stable because this is where I observed the issue. I understand that changing this in stable is not going to be possible, but I would appreciate if a fix could be made for this in openobject server trunk.
A simple workaround could be handling TypeError in xmlrpc_return (core.py) when calling xmlrpclib(
Thanks for your time.
Related branches
- Holger Brunn (Therp): Approve (code review)
- Raphaël Valyi - http://www.akretion.com: Approve
- Alexandre Fayolle - camptocamp: Approve (code review, no test)
-
Diff: 29 lines (+17/-1)1 file modifiedopenerp/wsgi/core.py (+17/-1)
- Alexandre Fayolle - camptocamp (community): Approve (code review, no test)
- OpenERP Core Team: Pending requested
-
Diff: 27 lines (+16/-1)1 file modifiedopenerp/service/wsgi_server.py (+16/-1)
- Holger Brunn (Therp): Approve (code review)
- Raphaël Valyi - http://www.akretion.com: Approve
- Alexandre Fayolle - camptocamp: Approve (code review, no test)
-
Diff: 27 lines (+16/-1)1 file modifiedopenerp/service/wsgi_server.py (+16/-1)
summary: |
- 6.1 stock_picking.action_invoice_create: cannot be called by xmlrpc + 6.1 stock_picking.action_invoice_create: calling by xmlrpc raises + TypeError |
summary: |
- 6.1 stock_picking.action_invoice_create: calling by xmlrpc raises - TypeError + stock_picking.action_invoice_create: calling by xmlrpc raises TypeError |
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
We found this error when trying to use price_get function on product.pricelist or product.product, the problem is those methods returns a dictionary with non-string keys.