Skip to Content
Menu
This question has been flagged
2454 Zobrazenia

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šiť
Related Posts Replies Zobrazenia Aktivita
1
mar 20
4746
0
apr 20
3089
2
dec 19
3554
2
dec 19
8409
3
jún 19
10235