Skip to Content
Menu
This question has been flagged
2 Replies
15120 Rodiniai

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??


Portretas
Atmesti

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

Best Answer

Try

self._origin.id
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
saus. 25
1297
0
gruod. 24
1302
1
geg. 24
2733
1
saus. 24
1726
2
geg. 22
14633