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

Hello, I am trying to get the ID from an object after I use the orm browse() method. When I assign my variable to the id of the returned record all i get it this

_id = record_object.order_partner_id
#returns this:
browse_record(sale.order.line, 106)

Does anyone know how I can get just the 106 from the object? Thank you

Avatar
Hylkää
Paras vastaus

Hi,

_id = record_object.order_partner_id.id will give you id of the specific record.

Hope this helps.

Avatar
Hylkää
Tekijä

Yep, that did it. Thank you

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
maalisk. 15
4316
1
maalisk. 15
7415
1
kesäk. 16
7268
1
maalisk. 15
14865
1
kesäk. 17
6642