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
- プロジェクト
- MRP
この質問にフラグが付けられました
2
返信
16212
ビュー
Try
self._origin.id
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
|
1
1月 25
|
2001 | ||
|
|
0
12月 24
|
1988 | ||
|
|
1
5月 24
|
3650 | ||
|
|
1
1月 24
|
2365 | ||
|
|
2
5月 22
|
15469 |
You cannot have ID of the record until it is saved.