Skip to Content
मेन्यू
This question has been flagged
1 Reply
7533 Views

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

Hi,

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

Hope this helps.

Avatar
Discard
Author

Yep, that did it. Thank you

Related Posts Replies Views Activity
2
मार्च 15
4289
1
मार्च 15
7376
1
जून 16
7235
1
मार्च 15
14838
1
जून 17
6573