-
Notifications
You must be signed in to change notification settings - Fork 23.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XMLRPC response "TypeError: cannot marshal None unless allow_none is enabled" despite using "allow_none=True" #12289
Comments
That's a known limitation of XMLRPC. |
Won't be able to do that soon, but will eventually. |
As @dreispt notes that's a limitation of "standard" XML-RPC, for the current RPC API Odoo doesn't enable the Of note, since a new RPC API will eventually have to be set up to finalise the deprecation and removal of the V7 API, we should be able to |
@xmo-odoo thanks for the details. You closed the ticket though and I have not created a PR yet... Shall I still create one for this? |
(a method that returns nothing is not callable through XML-RPC) Backport of dc043cf to 9.0 Fixes #12289 and tinyerp/erppeek#87
Hi, Changed the code on my instance exactly the same way you did, restarted Odoo, still the same issue... Am I missing something? |
Facing issue for "TypeError: cannot marshal <class '_thread.lock'> objects" python version 3.6 and odoo12 |
@HarshitTBrainvire you'd have to explain what call you're making for that to happen, because returning a lock over RPC is never going to work, and though I'm a bit doubtful this would occur in standard code it's a distinct possibility as the json-rpc serialization code tends to hide these issues under the cover (by stringifying everything). |
This allows the method to be called in RPC The nil extension has not been enabled as explained at odoo#12289 CLA: signature for parveenjangra290
This allows the method to be called in RPC The nil extension has not been enabled as explained at odoo#12289 Cla: signature for parveenjangra290 X-original-commit: abac62f
This allows the method to be called in RPC The nil extension has not been enabled as explained at odoo#12289 Cla: signature for parveenjangra290 X-original-commit: abac62f
This allows the method to be called in RPC The nil extension has not been enabled as explained at odoo#12289 Cla: signature for parveenjangra290 X-original-commit: abac62f
Impacted versions:
9.0c and 9.0e
Steps to reproduce:
Here is the code I used on a locally installed and running Odoo 9: (even more details on tinyerp/erppeek#87)
Current behavior:
Throws
xmlrpclib.Fault: <Fault cannot marshal None unless allow_none is enabled: 'Traceback [..]'>
when callingdelivery_set
onsale.order
.Expected behavior:
No exception thrown (or else?)
Video/Screenshot link (optional):
N/A
Other related links found:
#1055
#1284
The text was updated successfully, but these errors were encountered: