tinyerp / odooly

Python library and CLI to interact with Odoo and OpenERP.
https://odooly.rtfd.io/
Other
60 stars 33 forks source link

How can I get the JSON representation of both, odoo.Record and odooly.RecordList #18

Open reinaldoBloopark opened 8 months ago

reinaldoBloopark commented 8 months ago

This is a question, not an issue. I am using the library (and by the way its great) but I want to convert the read data to JSON.

If I have for example sa sale.order.line, and inside I have a product, I would like to have something like:

[{'line': [{'product_id': {'id': 5, 'name': 'Product Name'}}]}]; instead of having an instance of odooly.Record

Is this possible? any hint?

Thanks in advance