跳至內容
選單
此問題已被標幟
2 回覆
15073 瀏覽次數

Hello odooers
when I use compute method and onchange mehtod that time I did not get ID.
but I got self =  sale.order(<NewId 0x7f5dec30b2b0>,)  & self.id = <NewId 0x7f5dec30b2b0>.
I used _origin but got sale.order().

So, How can I get ID??


頭像
捨棄

You cannot have ID of the record until it is saved.

最佳答案

Try

self._origin.id
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 25
1279
0
12月 24
1279
1
5月 24
2683
1
1月 24
1695
2
5月 22
14582