Skip to Content
Menu
This question has been flagged
3917 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
May 15
19275
3
Apr 23
8399
0
Dec 24
25
2
Jul 24
566
1
Mar 24
835