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
- Contabilitate
- Inventar
- PoS
- Project
- MRP
Această întrebare a fost marcată
2
Răspunsuri
15051
Vizualizări
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!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
|
1
ian. 25
|
1270 | ||
|
0
dec. 24
|
1245 | ||
|
1
mai 24
|
2665 | ||
|
1
ian. 24
|
1682 | ||
|
2
mai 22
|
14557 |
You cannot have ID of the record until it is saved.