Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

[IMP] Allow creating a ODataRow from OValues with relations based on a OModel #328

Open pathob opened 7 years ago

pathob commented 7 years ago

Sometimes, for example when reading OValues from a OForm, it is necessary to convert them into a ODataRow with relation information in order to get these related ODataRows. This can now be achieved by providing the base OModel to the 'toDataRow' method, that takes care of the relation type of the associated OColumns and instantiates OX2XRecords based on the IDs if a relation is given.