[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.
This commit is contained in:
Géry Debongnie
2014-05-30 09:46:40 +02:00
parent 6b4a227cd4
commit 271b925a12
+1 -1
View 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 || "" );
}
});