Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
7555 Visninger

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
Kassér
Bedste svar

Hi,

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

Hope this helps.

Avatar
Kassér
Forfatter

Yep, that did it. Thank you

Related Posts Besvarelser Visninger Aktivitet
2
mar. 15
4314
1
mar. 15
7414
1
jun. 16
7268
1
mar. 15
14860
1
jun. 17
6638