changeset 34d4bf8dedb4 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=34d4bf8dedb4
description:
Call to view_get returns a single view
issue11107
diffstat:
src/tab.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 5f35f461245c -r 34d4bf8dedb4 src/tab.js
--- a/src/tab.js Wed Mar 30 19:20:31 2022 +0200
+++ b/src/tab.js Sat Apr 02 15:48:16 2022 +0200
@@ -1634,9 +1634,9 @@
UIView = new Sao.Model('ir.ui.view');
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));
+ this.view_prm.done(function(view) {
+ var board;
+ view = jQuery(jQuery.parseXML(view.arch));
this.board = new Sao.View.Board(view, this.context);
this.board.actions_prms.done(function() {
var i, len, action;