Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
15103 Vistas

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??


Avatar
Descartar

You cannot have ID of the record until it is saved.

Mejor respuesta

Try

self._origin.id
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 25
1290
0
dic 24
1291
1
may 24
2714
1
ene 24
1718
2
may 22
14615