Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4120 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
úno 24
3566
2
zář 21
11047
0
kvě 16
3490
2
bře 15
3650
4
úno 25
7322