コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1886 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 20
3716
0
4月 20
2442
2
12月 19
2821
2
12月 19
7604
3
6月 19
9266