Skip to Content
Menu
This question has been flagged
1 Atsakyti
7588 Rodiniai

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

Portretas
Atmesti
Best Answer

Hi,

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

Hope this helps.

Portretas
Atmesti
Autorius

Yep, that did it. Thank you

Related Posts Replies Rodiniai Veikla
2
kov. 15
4356
1
kov. 15
7444
1
birž. 16
7286
1
kov. 15
14894
1
birž. 17
6671