changeset da32b751934c in sao:5.8
details: https://hg.tryton.org/sao?cmd=changeset&node=da32b751934c
description:
        Use field context to edit record

        issue10806
        review364101002
        (grafted from 1249931768127750f3c905256aa435285a9a00fc)
diffstat:

 src/view/form.js |  1 +
 src/view/tree.js |  1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r 8fe179bba402 -r da32b751934c src/view/form.js
--- a/src/view/form.js  Sun Oct 03 00:40:18 2021 +0200
+++ b/src/view/form.js  Fri Oct 08 19:10:46 2021 +0200
@@ -2484,6 +2484,7 @@
                     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 -r 8fe179bba402 -r da32b751934c src/view/tree.js
--- a/src/view/tree.js  Sun Oct 03 00:40:18 2021 +0200
+++ b/src/view/tree.js  Fri Oct 08 19:10:46 2021 +0200
@@ -2195,6 +2195,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));
         }

Reply via email to