Se rendre au contenu
Menu
Cette question a été signalée
1858 Vues

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
Ignorer
Publications associées Réponses Vues Activité
1
mars 20
3710
0
avr. 20
2436
2
déc. 19
2818
2
déc. 19
7564
3
juin 19
9243