Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
15116 Tampilan

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
Buang

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

Jawaban Terbai

Try

self._origin.id
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jan 25
1296
0
Des 24
1297
1
Mei 24
2726
1
Jan 24
1721
2
Mei 22
14629