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

If "print self" is:

sale.order.line(440, 441, 442)

How can you get the object sale.order associated to those sale.order.line s?

I want to retrieve a field from that sale.order.

アバター
破棄

'order_id' field of 'sale.order.line' object refer to 'sale.order'. Hope it will help you.

最善の回答

if you're @api mulit:

for rec in self:

     rec.order_id.your_filed


or in singleton 

self.order_id.your_field

アバター
破棄
著作者

What happens if you do not specify api.multi?

関連投稿 返信 ビュー 活動
3
4月 17
9000
1
8月 24
4370
2
1月 24
5946
0
6月 23
2460
1
12月 22
3842