コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4930 ビュー

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 

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 15
20701
3
4月 23
11981
0
12月 24
1407
2
7月 24
2199
1
3月 24
2448