changeset f93ba8359b28 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=f93ba8359b28
description:
        Add RPC view_get method to View

        This allows to extend the inherit mechanism of the view and support 
inherit for
        the board view.
        Also the inherit is now applied to all element found by the xpath.

        issue11107
        issue11108
        review389601002
diffstat:

 CHANGELOG  |  1 +
 src/tab.js |  4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r de538e38893e -r f93ba8359b28 CHANGELOG
--- a/CHANGELOG Sun Jan 23 13:27:52 2022 +0100
+++ b/CHANGELOG Sun Jan 23 13:32:59 2022 +0100
@@ -1,3 +1,4 @@
+* Call view_get for board view
 * Limit board action domain to active id and ids
 * Manage creatable attribute of view
 
diff -r de538e38893e -r f93ba8359b28 src/tab.js
--- a/src/tab.js        Sun Jan 23 13:27:52 2022 +0100
+++ b/src/tab.js        Sun Jan 23 13:32:59 2022 +0100
@@ -1606,8 +1606,8 @@
             this.dialogs = [];
             this.board = null;
             UIView = new Sao.Model('ir.ui.view');
-            this.view_prm = UIView.execute('read', [[this.view_id], ['arch']],
-                    this.context);
+            this.view_prm = UIView.execute(
+                'view_get', [this.view_id], this.context);
             this.view_prm.done(function(views) {
                 var view, board;
                 view = jQuery(jQuery.parseXML(views[0].arch));

Reply via email to