Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
15560 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
1555
0
dic 24
1588
1
may 24
3131
1
ene 24
1929
2
may 22
14904