コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
16577 ビュー

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

アバター
破棄

self._origin.id will solve your problem.

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

著作者 最善の回答

This can be found at self._origin.id

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 19
5459
2
5月 15
21427
3
4月 23
13349
0
4月 22
3224
2
7月 24
2989