تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4111 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
فبراير 24
3565
2
سبتمبر 21
11043
0
مايو 16
3489
2
مارس 15
3646
4
فبراير 25
7318