Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1892 มุมมอง

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

 

อวตาร
ละทิ้ง