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
This commit is contained in:
Cédric Krier
2022-01-23 13:32:59 +01:00
parent 2c290e04b3
commit 868547be3d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Call view_get for board view
* Limit board action domain to active id and ids
* Manage creatable attribute of view
+2 -2
View File
@@ -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));