Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7514 Tampilan

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
Buang
Jawaban Terbai

Hi,

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

Hope this helps.

Avatar
Buang
Penulis

Yep, that did it. Thank you

Post Terkait Replies Tampilan Aktivitas
2
Mar 15
4273
1
Mar 15
7368
1
Jun 16
7218
1
Mar 15
14817
1
Jun 17
6558