From a7104a123b70c8ef19f5dff191ef34f2c8be01c4 Mon Sep 17 00:00:00 2001 From: "sma (Tiny)" Date: Tue, 23 Aug 2011 16:09:41 +0530 Subject: [PATCH] [ADD] vieweditor. bzr revid: sma@tinyerp.com-20110823103941-g2qq9dee248di0re --- addons/base/__openerp__.py | 1 + addons/base/static/src/js/boot.js | 2 +- addons/base/static/src/js/view_editor.js | 19 +++++++++++++++++++ addons/base/static/src/js/views.js | 4 +++- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 addons/base/static/src/js/view_editor.js diff --git a/addons/base/__openerp__.py b/addons/base/__openerp__.py index f9786e9867f..9c1124a108e 100644 --- a/addons/base/__openerp__.py +++ b/addons/base/__openerp__.py @@ -38,6 +38,7 @@ "static/src/js/list-editable.js", "static/src/js/search.js", "static/src/js/view_tree.js", + "static/src/js/view_editor.js" ], 'css' : [ "static/lib/jquery.superfish/css/superfish.css", diff --git a/addons/base/static/src/js/boot.js b/addons/base/static/src/js/boot.js index fff710a1d68..0dd8dcdc980 100644 --- a/addons/base/static/src/js/boot.js +++ b/addons/base/static/src/js/boot.js @@ -54,7 +54,7 @@ openerp.base = function(instance) { openerp.base.formats(instance); openerp.base.chrome(instance); openerp.base.data(instance); - files = ["views","search","list","form","list_editable","web_mobile","view_tree","data_export"]; + files = ["views","search","list","form","list_editable","web_mobile","view_tree","data_export","view_editor"]; for(i=0; i' + openerp.base.json_node_to_xml(this.fields_view.arch, true) + '').dialog({ width: '95%', height: 600}); +// $('' + openerp.base.json_node_to_xml(this.fields_view.arch, true) + '').dialog({ width: '95%', height: 600}); + var view_editor = new openerp.base.ViewEditor(this, this.$element, this.dataset, this.fields_view.arch) + view_editor.start(); } else { this.notification.warn("Manage Views", "Could not find current view declaration"); }