Skip to Content
Menu
This question has been flagged
2 Replies
15569 Views

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
Discard

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

Best Answer

Try

self._origin.id
Avatar
Discard
Related Posts Replies Views Activity
1
Jan 25
1558
0
Dec 24
1591
1
May 24
3135
1
Jan 24
1932
2
May 22
14910