From dff2e6ce9ed41ee41db6248ee0f22c422da567c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 8 Oct 2021 19:10:46 +0200 Subject: [PATCH] Use field context to edit record issue10806 review364101002 (grafted from 1249931768127750f3c905256aa435285a9a00fc) --HG-- branch : 6.0 --- src/view/form.js | 1 + src/view/tree.js | 1 + 2 files changed, 2 insertions(+) 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)); }