Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1890 Zobrazení

(For Odoo 11 or 12) suppose Parent model has one2many relationship with Child model.

Retrieving parent from XML-RPC API returns children’s IDs:

{ 'id': 1, 'name': 'mother', 'children': [6,8] }

Is possible to retrieve child occurrences in same query?  Result should be like:

{ 'id': 1, 'children': [ { 'id': 6, 'name': 'daughter' }, { 'id': 8, 'name': 'son' } ] }

 

Avatar
Zrušit