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??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
15073
瀏覽次數
Try
self._origin.id
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
1月 25
|
1279 | ||
|
0
12月 24
|
1279 | ||
|
1
5月 24
|
2683 | ||
|
1
1月 24
|
1695 | ||
|
2
5月 22
|
14582 |
You cannot have ID of the record until it is saved.