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?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
3
Apr 17
|
9566 | |||
|
1
Aug 24
|
4709 | |||
|
2
Jan 24
|
6407 | |||
|
0
Jun 23
|
2880 | |||
|
1
Dec 22
|
4294 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
'order_id' field of 'sale.order.line' object refer to 'sale.order'. Hope it will help you.