Use field.context_get instead of evaluating the context attribute
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user