Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
5682 Tampilan

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.

Avatar
Buang

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

Jawaban Terbai

if you're @api mulit:

for rec in self:

     rec.order_id.your_filed


or in singleton 

self.order_id.your_field

Avatar
Buang
Penulis

What happens if you do not specify api.multi?

Post Terkait Replies Tampilan Aktivitas
3
Apr 17
8894
1
Agu 24
4295
2
Jan 24
5871
0
Jun 23
2365
1
Des 22
3750