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
回复
15034
查看
Try
self._origin.id
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
1月 25
|
1268 | ||
|
0
12月 24
|
1244 | ||
|
1
5月 24
|
2662 | ||
|
1
1月 24
|
1678 | ||
|
2
5月 22
|
14555 |
You cannot have ID of the record until it is saved.