İçereği Atla
Menü
This question has been flagged
1773 Görünümler

I have two methods :


@api.onchange("field_A")

def method1(self):

    self.field_B += 1


@api.onchange("field_B")

def method2(self):

    self.field_A += 1


This causes a loop : modifying field A modifies field B that modifies field A. It is not an infinite loop, but it's not the result I expected. Is there a way to fix this ?


Thank you

Avatar
Vazgeç
Related Posts Cevaplar Görünümler Aktivite
1
Mar 20
3669
0
Nis 20
2385
2
Ara 19
2782
2
Ara 19
7460
3
Haz 19
9176