Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
15085 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
1280
0
dic 24
1284
1
mag 24
2685
1
gen 24
1701
2
mag 22
14588