Skip to content

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

@reinaldoBloopark

Description

@reinaldoBloopark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions