Se rendre au contenu
Menu
Cette question a été signalée
4923 Vues

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
Ignorer
Publications associées Réponses Vues Activité
2
mai 15
20698
3
avr. 23
11972
0
déc. 24
1402
2
juil. 24
2193
1
mars 24
2444