Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1907 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 20
3718
0
Apr 20
2446
2
Des 19
2823
2
Des 19
7626
3
Jun 19
9289