Skip to Content
Menu
This question has been flagged
1 Odpoveď
7522 Zobrazenia

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
Zrušiť
Best Answer

Hi,

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

Hope this helps.

Avatar
Zrušiť
Autor

Yep, that did it. Thank you

Related Posts Replies Zobrazenia Aktivita
2
mar 15
4284
1
mar 15
7373
1
jún 16
7227
1
mar 15
14834
1
jún 17
6562