From 280f93eaaa7d08860f1a703e86bfe495a18af58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 30 Sep 2008 16:08:26 +0200 Subject: [PATCH] Don't call on_whange_with if the field is the same than the one that comes to change --- tryton/gui/window/view_form/model/record.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index 8bc3c290fb..0c74bdedcd 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -351,6 +351,8 @@ class ModelRecord(SignalEvent): continue if field_name not in on_change_with: continue + if field_name == fieldname: + continue args = {} for arg in on_change_with: try: