diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-12-05 13:00:21 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-12-05 13:00:21 +0100 |
| commit | 7f1e33e16f3df390c4b8deb7c61cd715bf0066ca (patch) | |
| tree | c49bb9fb6cb54e49e47705c9d25eb32eb3a29dce /addons/web_dashboard/static/src | |
| parent | aa0a6afcb5a79e3a563db7ad4c85998baff2e0ac (diff) | |
[REM] Removed 'Undo' feature from dashboards
Requested by fp
bzr revid: fme@openerp.com-20111205120021-9qh22ppya3tewz8f
Diffstat (limited to 'addons/web_dashboard/static/src')
| -rw-r--r-- | addons/web_dashboard/static/src/js/dashboard.js | 8 | ||||
| -rw-r--r-- | addons/web_dashboard/static/src/xml/web_dashboard.xml | 4 |
2 files changed, 1 insertions, 11 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js index 5d9c82af027..ff2783cdcaf 100644 --- a/addons/web_dashboard/static/src/js/dashboard.js +++ b/addons/web_dashboard/static/src/js/dashboard.js @@ -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) { diff --git a/addons/web_dashboard/static/src/xml/web_dashboard.xml b/addons/web_dashboard/static/src/xml/web_dashboard.xml index 085c331b4fc..462334d2b83 100644 --- a/addons/web_dashboard/static/src/xml/web_dashboard.xml +++ b/addons/web_dashboard/static/src/xml/web_dashboard.xml @@ -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> |
