Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7521 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

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

Hope this helps.

Avatar
Abbandona
Autore

Yep, that did it. Thank you

Post correlati Risposte Visualizzazioni Attività
2
mar 15
4281
1
mar 15
7372
1
giu 16
7226
1
mar 15
14833
1
giu 17
6561