[FIX] correct default value in add to dashboard
authorGéry Debongnie <ged@odoo.com>
Fri, 30 May 2014 07:44:15 +0000 (09:44 +0200)
committerGéry Debongnie <ged@odoo.com>
Fri, 30 May 2014 07:46:40 +0000 (09:46 +0200)
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

index 0e9b179..05b2df0 100644 (file)
@@ -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 || "" );
     }
 });