Closed 443933773 closed 2 years ago
Do you mean how to read related fields? The same way as Odoo's web client does it. Open network calls and you will see it.
For example, I opened sales order.
At first web client reads the fields on sale.order
model.
The response has tuples (id, name)
for Many2one fields, so you can show it on interface without fetching extra data. And you have id
to get more details if needed. It shows Ready Mat as a link. If you click it you will get partner form with id 12
And for One2many fields (order lines) it gives you ids which has to be fetched with second call.
Odoo client does exactly that: it fetches order lines with second call
And response is
Hi,
Could you please provide more details?