Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
15080 Vues

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
Ignorer

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

Meilleure réponse

Try

self._origin.id
Avatar
Ignorer
Publications associées Réponses Vues Activité
1
janv. 25
1280
0
déc. 24
1282
1
mai 24
2684
1
janv. 24
1698
2
mai 22
14587