Skip to Content
मेन्यू
This question has been flagged
1 Reply
4248 Views

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
Discard
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.


Avatar
Discard
Related Posts Replies Views Activity
3
फ़र॰ 24
3752
2
सित॰ 21
11210
0
मई 16
3634
2
मार्च 15
3820
4
फ़र॰ 25
7457