Skip to Content
मेन्यू
This question has been flagged
5011 Views

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 

Avatar
Discard
Related Posts Replies Views Activity
2
मई 15
20839
3
अप्रैल 23
12341
0
दिस॰ 24
1496
2
जुल॰ 24
2359
1
मार्च 24
2559