From 4fc67d7a5d7d8bbd6180cc717c0f267c5ec0e1c1 Mon Sep 17 00:00:00 2001 From: "Vidhin Mehta (OpenERP)" Date: Fri, 7 Sep 2012 18:41:49 +0530 Subject: [PATCH] [IMP]show reset button on debug mode. bzr revid: vme@tinyerp.com-20120907131149-4z5vjfha0bfi8rb7 --- addons/board/static/src/js/dashboard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js index cdb5193c712..8da4f6cf7b5 100644 --- a/addons/board/static/src/js/dashboard.js +++ b/addons/board/static/src/js/dashboard.js @@ -17,7 +17,10 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({ start: function() { var self = this; this._super.apply(this, arguments); - + + if(!this.session.debug) + this.$el.find(".oe_dashboard_links button:first").css("display", "none"); + this.$el.find('.oe_dashboard_column').sortable({ connectWith: '.oe_dashboard_column', handle: '.oe_header',