Don't set default value for on_change and set id

issue3487
review2501003
This commit is contained in:
Cédric Krier
2014-01-26 14:31:12 +01:00
parent 0401d2966b
commit 6be6fe8f2a
+3 -2
View File
@@ -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):