[Python] Odoo JsonRPC : Get m2m, m2o or one2many nested field with read method

Discussão em 'Python' iniciado por Stack, Fevereiro 11, 2025.

  1. Stack

    Stack Membro Participativo

    With odoo jsonrpc default api, is there a way to get directly nested field content on odoo like many2many, many2one or one2many in a single read call :

    {
    "jsonrpc": "2.0",
    "params": {
    "model": "car.rental.contract",
    "method": "read",
    "args": [[7]],
    "kwargs": {}
    }
    }


    for this example I want to do something like :

    {
    "kwargs": {
    "fields": ["customer_id__email"]
    }
    }

    Continue reading...

Compartilhe esta Página