Skip to Content
Menú
This question has been flagged
2456 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
1
de març 20
4746
0
d’abr. 20
3089
2
de des. 19
3555
2
de des. 19
8409
3
de juny 19
10235