Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
8048 Visualizações

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
Cancelar
Melhor resposta

Hi,

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

Hope this helps.

Avatar
Cancelar
Autor

Yep, that did it. Thank you

Publicações relacionadas Respostas Visualizações Atividade
2
mar. 15
4800
1
mar. 15
7873
1
jun. 16
7732
1
mar. 15
15383
1
jun. 17
7127