From 763523b65df2032daaf61322c62965dd3aab7b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 21 Jan 2010 13:35:08 +0100 Subject: [PATCH] Fix _get_on_change_args to keep value type --- tryton/gui/window/view_form/model/record.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tryton/gui/window/view_form/model/record.py b/tryton/gui/window/view_form/model/record.py index 4e51ba01ee..6488e8f6e1 100644 --- a/tryton/gui/window/view_form/model/record.py +++ b/tryton/gui/window/view_form/model/record.py @@ -364,8 +364,11 @@ class ModelRecord(SignalEvent): for arg in args: scope = values for i in arg.split('.'): - scope = scope.get(i, {}) - res[arg] = scope or False + if i not in scope: + scope = False + break + scope = scope[i] + res[arg] = scope return res def on_change(self, fieldname, attr):