diff --git a/src/view/form.js b/src/view/form.js index 15ceb1f788..712b47b3cb 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -2560,6 +2560,7 @@ function eval_pyson(value){ params.res_id = m2o_id; params.mode = ['form']; params.name = this.attributes.string; + params.context = this.field.get_context(this.record); Sao.Tab.create(params); return; } diff --git a/src/view/tree.js b/src/view/tree.js index 99d03bebd0..3fc53cd8cc 100644 --- a/src/view/tree.js +++ b/src/view/tree.js @@ -2267,6 +2267,7 @@ params.res_id = this.field.get(record); params.mode = ['form']; params.name = this.attributes.string; + params.context = this.field.get_context(record); Sao.Tab.create(params); }.bind(this)); }