Skip to Content
Menú
This question has been flagged
1 Respondre
7668 Vistes

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
Descartar
Best Answer

Hi,

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

Hope this helps.

Avatar
Descartar
Autor

Yep, that did it. Thank you

Related Posts Respostes Vistes Activitat
2
de març 15
4436
1
de març 15
7528
1
de juny 16
7424
1
de març 15
15005
1
de juny 17
6768