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:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
2
返信
15091
ビュー
Try
self._origin.id
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
1月 25
|
1284 | ||
|
0
12月 24
|
1284 | ||
|
1
5月 24
|
2690 | ||
|
1
1月 24
|
1707 | ||
|
2
5月 22
|
14599 |
You cannot have ID of the record until it is saved.