Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
15689 Visualizzazioni

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
Abbandona

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

Risposta migliore

Try

self._origin.id
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 25
1648
0
dic 24
1655
1
mag 24
3201
1
gen 24
2008
2
mag 22
14986