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
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
This question has been flagged
931
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Have a look at: https://www.odoo.com/documentation/14.0/developer/misc/api/odoo.html
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