Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7557 Zobrazení

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šit
Nejlepší odpověď

Hi,

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

Hope this helps.

Avatar
Zrušit
Autor

Yep, that did it. Thank you

Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
4316
1
bře 15
7415
1
čvn 16
7268
1
bře 15
14865
1
čvn 17
6642