From 2f328d34472cb9cb71ec6ca3dcbdc6b54558d076 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 6 Feb 2017 14:24:51 +0100 Subject: [PATCH] [FIX] web: Dashboards error Steps to reproduce: Go to any pivot view (for example Sales > Report > Sales) and add the current view to your personnal dashboard (in the search view: Favourites > Add to my Dashboard) Go to the dashboard, traceback because $buttons was not defined. opw:707296 --- addons/web/static/src/js/views/pivot_view.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views/pivot_view.js b/addons/web/static/src/js/views/pivot_view.js index d275e122285..28b3bee2cd2 100644 --- a/addons/web/static/src/js/views/pivot_view.js +++ b/addons/web/static/src/js/views/pivot_view.js @@ -57,6 +57,7 @@ var PivotView = View.extend({ this.headers = {}; this.cells = {}; this.has_data = false; + this.$buttons = $(); this.last_header_selected = null; this.sorted_column = {};