Skip to Content
मेन्यू
This question has been flagged
2350 Views

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
Discard
Related Posts Replies Views Activity
1
मार्च 20
4588
0
अप्रैल 20
2963
2
दिस॰ 19
3444
2
दिस॰ 19
8289
3
जून 19
10082