Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4139 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
feb. 24
3593
2
sept. 21
11062
0
mai 16
3501
2
mar. 15
3663
4
feb. 25
7340