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?
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
3
abr. 17
|
8991 | ||
|
1
ago. 24
|
4349 | ||
Merge Same Item in Sale Order Line
Resolvido
|
|
2
jan. 24
|
5939 | |
|
0
jun. 23
|
2445 | ||
|
1
dez. 22
|
3829 |
'order_id' field of 'sale.order.line' object refer to 'sale.order'. Hope it will help you.