I have a hit the exception ...
TypeError: cannot marshal None unless allow_none is enabled
... several times already when working with XMLRPC.
While it gives me the clue that I must not allow
None types in my data sets, it would really help to enable
allow_none, when this occurs, in order to pinpoint which field is null.
How do I enable
allow_none on XMLRPC?
OpenERP's XMLRPC protocol doesn't allow the None values to pass to the client. So you need to replace those None values by False. To identify which values are passed as None just start your server with --log-level='debug_rpc_answer' and check the last rpc_answer sent to the client. Or add "allow_none=True" to all xmlrpc.ServerProxy calls in rpc.py in the GTK client.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/30/13, 12:47 PM|
|Seen: 13024 times|
|Last updated: 3/16/15, 8:10 AM|