コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
7542 ビュー

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

アバター
破棄
最善の回答

Hi,

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

Hope this helps.

アバター
破棄
著作者

Yep, that did it. Thank you

関連投稿 返信 ビュー 活動
2
3月 15
4295
1
3月 15
7389
1
6月 16
7245
1
3月 15
14846
1
6月 17
6596