Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4132 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
feb. 24
3584
2
sep. 21
11059
0
mei 16
3497
2
mrt. 15
3660
4
feb. 25
7335