Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
15081 Prikazi

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
Opusti

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

Best Answer

Try

self._origin.id
Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jan. 25
1280
0
dec. 24
1283
1
maj 24
2684
1
jan. 24
1698
2
maj 22
14587