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

Hi, I just wanna now how I could make an @api.onchange, but from a field of another class, like:


I have in account.move the field "x"

And I have a method in account.move.line, that I want to use when the field "x" from account.move changes.


I tried @api.onchange(move.x) or @api.onchange(account.move.x) but it doesen't works : /


Thanks in advance

アバター
破棄
最善の回答

Hi,

try this:

@api.onchange(xx_id.x)

Note: xx_id is the  Many2one field.

2 Classes are related by the Many2one field and One2many field.

Hop it is useful.


アバター
破棄
関連投稿 返信 ビュー 活動
3
2月 24
3565
2
9月 21
11043
0
5月 16
3486
2
3月 15
3645
4
2月 25
7315