Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4099 Tampilan

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

Avatar
Buang
Jawaban Terbai

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.


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Feb 24
3561
2
Sep 21
11041
0
Mei 16
3484
2
Mar 15
3644
4
Feb 25
7310