Skip to Content
Menu
This question has been flagged
931 Views

Dear Odoo community, I'm relatively new to Python and seem to be confused by proper declaring the list format for a XMLRPC create. If I run my Python script with a static value like this: test=[{"name":"John Doe","email":"john-doe@odoo.com"}] it writes a new contact to Odoo perfectly. If I manually input this value, it can't marshal because of the wrong type, it's a str where it should be a list: listtest = list(test.split(", ")) However, it still fails to take this input and Odoo errors: TypeError Considering the prefixed value description, could this be a JSON format that I need to convert somehow? Any help will be greatly appreciated, thanks in advance for your time. With kind regards, Dirk

Avatar
Discard
Author

The documentation is how I got started and doesn't in any way answer my question regarding converting a input str to a suitable list value.

If you want help then I suggest:

1. Pasting the actual code

2. Providing the full error message