Skip to Content
Menú
This question has been flagged
5015 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 15
20840
3
d’abr. 23
12347
0
de des. 24
1500
2
de jul. 24
2362
1
de març 24
2560