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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
14901
Vistas
Try
self._origin.id
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
ene 25
|
1155 | ||
|
0
dic 24
|
1155 | ||
|
1
may 24
|
2536 | ||
|
1
ene 24
|
1631 | ||
|
2
may 22
|
14416 |
You cannot have ID of the record until it is saved.