[MERGE] Merge wtih trunk upto revision no 1046.
[odoo/odoo.git] / addons / web / static / src / js / views.js
index 28e9772..9279d95 100644 (file)
@@ -853,7 +853,8 @@ db.web.View = db.web.Widget.extend(/** @lends db.web.View# */{
     },
     on_sidebar_manage_view: function() {
         if (this.fields_view && this.fields_view.arch) {
-            $('<xmp>' + db.web.json_node_to_xml(this.fields_view.arch, true) + '</xmp>').dialog({ width: '95%', height: 600});
+            var view_editor = new db.web.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");
         }