Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
7581 Ansichten

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
Verwerfen
Beste Antwort

Hi,

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

Hope this helps.

Avatar
Verwerfen
Autor

Yep, that did it. Thank you

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
März 15
4340
1
März 15
7432
1
Juni 16
7283
1
März 15
14883
1
Juni 17
6659