Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2194 Vizualizări

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 20
4358
0
apr. 20
2809
2
dec. 19
3254
2
dec. 19
8122
3
iun. 19
9876