Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1919 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 20
3732
0
dub 20
2451
2
pro 19
2826
2
pro 19
7633
3
čvn 19
9303