From 868547be3d811d1adecb3de40a26ad2ce8af628b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 23 Jan 2022 13:32:59 +0100 Subject: [PATCH] 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 --- CHANGELOG | 1 + src/tab.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3e689768e3..41e2aa2f87 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 --git a/src/tab.js b/src/tab.js index 9181577e5f..2e9ca04d78 100644 --- a/src/tab.js +++ b/src/tab.js @@ -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));