Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/30/13, 12:47 PM|
|Seen: 15088 times|
|Last updated: 3/16/15, 8:10 AM|