Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
5717 Prikazi

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
Opusti

'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
Opusti
Avtor

What happens if you do not specify api.multi?

Related Posts Odgovori Prikazi Aktivnost
3
apr. 17
8959
1
avg. 24
4324
2
jan. 24
5910
0
jun. 23
2426
1
dec. 22
3807