Ir al contenido
Menú
Se marcó esta pregunta
4932 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 15
20703
3
abr 23
11982
0
dic 24
1409
2
jul 24
2203
1
mar 24
2449