Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7539 Weergaven

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
Annuleer
Beste antwoord

Hi,

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

Hope this helps.

Avatar
Annuleer
Auteur

Yep, that did it. Thank you

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 15
4295
1
mrt. 15
7383
1
jun. 16
7241
1
mrt. 15
14840
1
jun. 17
6590