Skip to Content
Menu
This question has been flagged
1 Atsakyti
4128 Rodiniai

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

Portretas
Atmesti
Best Answer

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.


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
vas. 24
3576
2
rugs. 21
11053
0
geg. 16
3494
2
kov. 15
3656
4
vas. 25
7331