Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
7527 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
4287
1
mar. 15
7373
1
jun. 16
7232
1
mar. 15
14836
1
jun. 17
6568