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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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?
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
kwi 17
|
8820 | ||
|
1
sie 24
|
4214 | ||
Merge Same Item in Sale Order Line
Rozwiązane
|
|
2
sty 24
|
5799 | |
|
0
cze 23
|
2295 | ||
|
1
gru 22
|
3654 |
'order_id' field of 'sale.order.line' object refer to 'sale.order'. Hope it will help you.