Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4962 มุมมอง

print(self._origin.promotion_id.id)

print value 

odoo.models.NewId object at 0x7f21fb068ac8


for test in self._origin.promotion_id: 

 print(test.id)

print value 

odoo.models.NewId object at 0x7f21fb068ac8



print(self._origin.promotion_id.name)

print value 

TEST it giving perfect result 


other then ID other column i can easily access but in this time i need ID 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
object has no attribute '_ids' แก้ไขแล้ว
2
พ.ค. 15
20746
3
เม.ย. 23
12068
0
ธ.ค. 24
1433
2
ก.ค. 24
2247
Import Data From Another Model แก้ไขแล้ว
1
มี.ค. 24
2466