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

How could I get the current ID of a record in Onchange Function? self._id, self.id, will give you an object like <openerp.models.NewId object at 0xb0efbc4c> , My question is Whether the onchange function fetching values from ENV instead of an valid record?

I am following new api

Portretas
Atmesti

self._origin.id will solve your problem.

Reference: https://www.youtube.com/watch?v=eYVD_m6-jz8&t=4s

Autorius Best Answer

This can be found at self._origin.id

Portretas
Atmesti
Best Answer

Hi Hilar,

please follow this link.I think this will helps to solve.

https://www.odoo.com/forum/help-1/question/obtain-the-id-of-a-self-onchange-odoo-101202

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
liep. 19
5474
2
geg. 15
21436
3
bal. 23
13357
0
bal. 22
3231
2
liep. 24
2995