Skip to Content
मेन्यू
This question has been flagged

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
Discard

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

Best Answer

if you're @api mulit:

for rec in self:

     rec.order_id.your_filed


or in singleton 

self.order_id.your_field

Avatar
Discard
Author

What happens if you do not specify api.multi?

Related Posts Replies Views Activity
3
अप्रैल 17
8878
1
अग॰ 24
4270
2
जन॰ 24
5850
0
जून 23
2341
1
दिस॰ 22
3714