Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4935 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 15
20705
3
thg 4 23
11986
0
thg 12 24
1410
2
thg 7 24
2206
1
thg 3 24
2450