Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
reinaldoBloopark opened this issue Jan 12, 2024 · 0 comments

Comments

@reinaldoBloopark
Copy link

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<product.product>

Is this possible? any hint?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant