From 6be6fe8f2a50b7ad2629b7908018db95c5f7cd3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 26 Jan 2014 14:31:12 +0100 Subject: [PATCH] Don't set default value for on_change and set id issue3487 review2501003 --- proteus/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proteus/__init__.py b/proteus/__init__.py index 465f309b3c..e8c96b2cc5 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -788,10 +788,11 @@ class Model(object): scope = values for i in arg.split('.'): if i not in scope: - scope = False break scope = scope[i] - res[arg] = scope + else: + res[arg] = scope + res['id'] = self.id return res def _on_change_set(self, field, value):