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):