Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7525 Vues

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
Ignorer
Meilleure réponse

Hi,

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

Hope this helps.

Avatar
Ignorer
Auteur

Yep, that did it. Thank you

Publications associées Réponses Vues Activité
2
mars 15
4284
1
mars 15
7373
1
juin 16
7229
1
mars 15
14835
1
juin 17
6565