Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1828 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 20
3700
0
apr 20
2427
2
dic 19
2812
2
dic 19
7550
3
giu 19
9240