From 271b925a12e5f1a1c7df860947a96c82ab8ec6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 30 May 2014 09:44:15 +0200 Subject: [PATCH] [FIX] correct default value in add to dashboard the searchview has been split in two: searchview and searchviewdrawer. The widget addtodashboard need to get the name from the searchview and not from the drawer. --- addons/board/static/src/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js index 0e9b17934a4..05b2df0cf6b 100644 --- a/addons/board/static/src/js/dashboard.js +++ b/addons/board/static/src/js/dashboard.js @@ -412,7 +412,7 @@ instance.board.AddToDashboard = instance.web.search.Input.extend({ this.$el.toggleClass('oe_opened'); if (! this.$el.hasClass('oe_opened')) return; - this.$("input").val(this.getParent().fields_view.name || "" ); + this.$("input").val(this.view.fields_view.name || "" ); } });