Use field.context_get instead of evaluating the context attribute

This commit is contained in:
Cédric Krier committed 2012-03-07 16:17:19 +01:00
1 parent 8e9b3e0971
commit ec4872e70a
1 file changed
+1 -1
@@ -237,7 +237,7 @@ class One2Many(WidgetInterface):
self.screen.display()
return
ctx = {}
ctx.update(self.record.expr_eval(self.attrs.get('context', {})))
ctx.update(self.field.context_get(self.record))
sequence = None
if self.screen.current_view.view_type == 'tree':
sequence = self.screen.current_view.widget_tree.sequence