Skip to Content
Menu
This question has been flagged
1665 Views

(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
Discard