summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDikshit Prajapati <pdi@openerp.com>2014-11-18 08:21:47 +0100
committerRichard Mathot <rim@openerp.com>2014-11-18 08:27:36 +0100
commitb1bd607e71b9416cd733d1451dc53cd355e5af9f (patch)
treea17508ad2f57d327d31686357561664baddcacfc /addons
parent119b541a0affa14fe8835f68db06b9a20c8b33da (diff)
[REM] board: "reset dashboard" button
Diffstat (limited to 'addons')
-rw-r--r--addons/board/static/src/js/dashboard.js7
-rw-r--r--addons/board/static/src/xml/board.xml4
-rw-r--r--addons/web/controllers/main.py13
3 files changed, 0 insertions, 24 deletions
diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js
index e24770f3b18..eb52bfbd017 100644
--- a/addons/board/static/src/js/dashboard.js
+++ b/addons/board/static/src/js/dashboard.js
@@ -9,7 +9,6 @@ if (!instance.board) {
instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
events: {
- 'click .oe_dashboard_link_reset': 'on_reset',
'click .oe_dashboard_link_change_layout': 'on_change_layout',
'click h2.oe_header span.oe_header_txt': function (ev) {
if(ev.target === ev.currentTarget)
@@ -78,12 +77,6 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
}
});
},
- on_reset: function() {
- this.rpc('/web/view/undo_custom', {
- view_id: this.view.fields_view.view_id,
- reset: true
- }).done(this.do_reload);
- },
on_change_layout: function() {
var self = this;
var qdict = {
diff --git a/addons/board/static/src/xml/board.xml b/addons/board/static/src/xml/board.xml
index 305799d0617..bc4a382ba56 100644
--- a/addons/board/static/src/xml/board.xml
+++ b/addons/board/static/src/xml/board.xml
@@ -1,10 +1,6 @@
<template>
<t t-name="DashBoard">
<div class="oe_dashboard_links">
- <button type="button" class="button oe_dashboard_link_reset" title="Reset Layout.." t-att-style="view.fields_view.custom_view_id || session.debug ? null : 'display: none'">
- <img src="/board/static/src/img/layout_2-1.png" width="16" height="16"/>
- <span> Reset </span>
- </button>
<button type="button" class="button oe_dashboard_link_change_layout" title="Change Layout..">
<img src="/board/static/src/img/layout_1-1-1.png" width="16" height="16"/>
<span> Change Layout </span>
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 296f4f1b9bc..6f4a58da38c 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1016,19 +1016,6 @@ class View(http.Controller):
}, request.context)
return {'result': True}
- @http.route('/web/view/undo_custom', type='json', auth="user")
- def undo_custom(self, view_id, reset=False):
- CustomView = request.session.model('ir.ui.view.custom')
- vcustom = CustomView.search([('user_id', '=', request.session.uid), ('ref_id' ,'=', view_id)],
- 0, False, False, request.context)
- if vcustom:
- if reset:
- CustomView.unlink(vcustom, request.context)
- else:
- CustomView.unlink([vcustom[0]], request.context)
- return {'result': True}
- return {'result': False}
-
class TreeView(View):
@http.route('/web/treeview/action', type='json', auth="user")