[REM] Removed 'Undo' feature from dashboards

Requested by fp

bzr revid: fme@openerp.com-20111205120021-9qh22ppya3tewz8f
This commit is contained in:
Fabien Meghazi
2011-12-05 13:00:21 +01:00
parent aa0a6afcb5
commit 7f1e33e16f
2 changed files with 1 additions and 11 deletions
@@ -24,7 +24,6 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
}).disableSelection().bind('sortstop', self.do_save_dashboard);
// Events
this.$element.find('.oe-dashboard-link-undo').click(this.on_undo);
this.$element.find('.oe-dashboard-link-reset').click(this.on_reset);
this.$element.find('.oe-dashboard-link-change_layout').click(this.on_change_layout);
@@ -47,11 +46,6 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
});
});
},
on_undo: function() {
this.rpc('/web/view/undo_custom', {
view_id: this.view.fields_view.view_id
}, this.do_reload);
},
on_reset: function() {
this.rpc('/web/view/undo_custom', {
view_id: this.view.fields_view.view_id,
@@ -145,7 +139,7 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
view_id: this.view.fields_view.view_id,
arch: arch
}, function() {
self.$element.find('.oe-dashboard-link-undo, .oe-dashboard-link-reset').show();
self.$element.find('.oe-dashboard-link-reset').show();
});
},
on_load_action: function(result, index) {
@@ -5,10 +5,6 @@
<img src="/web/static/src/img/icons/STOCK_GOTO_FIRST.png" width="16" height="16"/>
<span>Reset</span>
</button>
<button type="button" class="button oe-dashboard-link-undo" t-att-style="view.fields_view.custom_view_id ? null : 'display: none'">
<img src="/web/static/src/img/icons/gtk-undo.png" width="16" height="16"/>
<span>Undo</span>
</button>
<button type="button" class="button oe-dashboard-link-change_layout">
<img src="/web/static/src/img/icons/gtk-edit.png" width="16" height="16"/>
<span>Change layout</span>