Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7518 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

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

Hope this helps.

Awatar
Odrzuć
Autor

Yep, that did it. Thank you

Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
4281
1
mar 15
7372
1
cze 16
7223
1
mar 15
14824
1
cze 17
6560