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
답글
15480
화면
Try
self._origin.id
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
1월 25
|
1492 | ||
|
0
12월 24
|
1565 | ||
|
1
5월 24
|
3058 | ||
|
1
1월 24
|
1903 | ||
|
2
5월 22
|
14853 |
You cannot have ID of the record until it is saved.