We can take advantage of the nested read functionality of the models
Currently each tryton client do only flat reads when fetching the data from trytond.
But the read
method can do nested read for relation records since 596528aa0139.
We're proposing to set the loading
property of the x2M fields to eager
when they're displayed directly in the form ; if the field is inside a notebook its loading
property should be eager
only when the field is in the first page.
In order not to fetch too many records a context
key will specify the size of the relation records that are fetched completely (for the others as before only the id
will be returned by trytond). That way people already relying on the API can still use it as-is.