Skip to Content
Menu
This question has been flagged
1868 Rodiniai

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 20
3711
0
bal. 20
2436
2
gruod. 19
2819
2
gruod. 19
7564
3
birž. 19
9257