Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7524 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

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

Hope this helps.

Imagine profil
Abandonează
Autor

Yep, that did it. Thank you

Related Posts Răspunsuri Vizualizări Activitate
2
mar. 15
4284
1
mar. 15
7373
1
iun. 16
7228
1
mar. 15
14835
1
iun. 17
6564