CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
Odoo Training Center
|Asked: 4/30/13, 12:47 PM|
|Seen: 16417 times|
|Last updated: 3/16/15, 8:10 AM|