[ADD] Debug xml view plugged to "Manage Views" sidebar option

bzr revid: fme@openerp.com-20110803084250-0hrrd7b3bnjf573q
This commit is contained in:
Fabien Meghazi 2011-08-03 10:42:50 +02:00
parent 148b1d482d
commit 65b6987364
1 changed files with 5 additions and 1 deletions

View File

@ -553,7 +553,11 @@ openerp.base.View = openerp.base.Widget.extend({
]);
},
on_sidebar_manage_view: function() {
console.log('Todo');
if (this.fields_view && this.fields_view.arch) {
$('<xmp>' + openerp.base.json_node_to_xml(this.fields_view.arch, true) + '</xmp>').dialog({ width: '95%', height: 600});
} else {
this.notification.warn("Manage Views", "Could not find current view declaration");
}
},
on_sidebar_edit_workflow: function() {
console.log('Todo');