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
Відповіді
16223
Переглядів
Try
self._origin.id
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
1
січ. 25
|
2004 | ||
|
|
0
груд. 24
|
1996 | ||
|
|
1
трав. 24
|
3656 | ||
|
|
1
січ. 24
|
2375 | ||
|
|
2
трав. 22
|
15476 |
You cannot have ID of the record until it is saved.