İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
7519 Görünümler

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
Vazgeç
En İyi Yanıt

Hi,

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

Hope this helps.

Avatar
Vazgeç
Üretici

Yep, that did it. Thank you

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Mar 15
4281
1
Mar 15
7372
1
Haz 16
7225
1
Mar 15
14827
1
Haz 17
6560