Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7532 Vistas

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
Descartar
Mejor respuesta

Hi,

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

Hope this helps.

Avatar
Descartar
Autor

Yep, that did it. Thank you

Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
4289
1
mar 15
7376
1
jun 16
7235
1
mar 15
14838
1
jun 17
6572