Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
16564 Vizualizări

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

Imagine profil
Abandonează

self._origin.id will solve your problem.

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

Autor Cel mai bun răspuns

This can be found at self._origin.id

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iul. 19
5429
2
mai 15
21407
3
apr. 23
13321
0
apr. 22
3188
2
iul. 24
2946