Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1895 Lượt xem

(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' } ] }

 

Ảnh đại diện
Huỷ bỏ