Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
7547 Prikazi

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

Hi,

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

Hope this helps.

Avatar
Opusti
Avtor

Yep, that did it. Thank you

Related Posts Odgovori Prikazi Aktivnost
2
mar. 15
4304
1
mar. 15
7398
1
jun. 16
7257
1
mar. 15
14850
1
jun. 17
6609