[MERGE] Merge with trunk upto revision no 1184.
[odoo/odoo.git] / addons / web / static / src / js / views.js
index 46091fa..f0bbbe7 100644 (file)
@@ -856,7 +856,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");
         }