Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3000 Näkymät

How can i access field values in another server using odoo 10 xml rpc other than just ids only? I want to access certain field value like name to manipulate it to be use for conditions in a method or function. Thank you very much in advance. 

Avatar
Hylkää
Paras vastaus

Hi,

Once you get the is of the record, use read method to read the data from the record.

See this sample:

sol = models.execute_kw(db, uid, password,'sale.order.line', 'read', [pro], {'fields': ['product_id']})


To know more, see: https://www.youtube.com/watch?v=isjhwKAL63M

Thanks

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 22
2305
0
kesäk. 17
2701
1
tammik. 24
2974
3
lokak. 23
5680
1
heinäk. 23
3166