تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1910 أدوات العرض

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

 

الصورة الرمزية
إهمال