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?
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
3
เม.ย. 17
|
8936 | ||
|
1
ส.ค. 24
|
4320 | ||
Merge Same Item in Sale Order Line
แก้ไขแล้ว
|
|
2
ม.ค. 24
|
5905 | |
|
0
มิ.ย. 23
|
2413 | ||
|
1
ธ.ค. 22
|
3802 |
'order_id' field of 'sale.order.line' object refer to 'sale.order'. Hope it will help you.