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
- 專案管理
- MRP
此問題已被標幟
2
回覆
16205
瀏覽次數
Try
self._origin.id
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
|
1
1月 25
|
2001 | ||
|
|
0
12月 24
|
1987 | ||
|
|
1
5月 24
|
3646 | ||
|
|
1
1月 24
|
2355 | ||
|
|
2
5月 22
|
15467 |
You cannot have ID of the record until it is saved.