Update context before it could be overriden by field name

This commit is contained in:
Cédric Krier committed 2012-06-08 21:21:33 +02:00
1 parent 82f7e8ec11
commit 769b28bd0f
1 file changed
+1 -1
+1 -1
View File
@@ -452,10 +452,10 @@ class Record(SignalEvent):
self._check_load()
ctx = rpc.CONTEXT.copy()
ctx['context'] = ctx.copy()
ctx['context'].update(self.context_get())
for name, field in self.group.fields.items():
ctx[name] = field.get_eval(self, check_load=check_load)
ctx['context'].update(self.context_get())
ctx['active_id'] = self.id
ctx['id'] = self.id # Force local id
ctx['_user'] = rpc._USER