From 3b5bd3598cdc86b285b12977aaf294832d937d6a Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 1 Aug 2012 15:58:03 +0200 Subject: [PATCH] [FIX] kinda sorta rename add to dashboard feature to add to reporting according to apr's wishes also change button from 'save' to 'add' bzr revid: xmo@openerp.com-20120801135803-j4wwbdm2ngdz4koo --- addons/web/static/src/js/search.js | 11 ++++++----- addons/web/static/src/xml/base.xml | 13 ++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index 945fc7323d5..53daa40ae31 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -661,7 +661,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea null, _(this.select_for_drawer()).invoke( 'appendTo', this.$element.find('.oe_searchview_drawer'))); - new instance.web.search.AddToDashboard(this).appendTo($('.oe_searchview_drawer', this.$element)); + new instance.web.search.AddToReporting(this).appendTo($('.oe_searchview_drawer', this.$element)); // load defaults var defaults_fetched = $.when.apply(null, _(this.inputs).invoke( @@ -1678,8 +1678,8 @@ instance.web.search.Filters = instance.web.search.Input.extend({ })); } }); -instance.web.search.AddToDashboard = instance.web.Widget.extend({ - template: 'SearchView.addtodashboard', +instance.web.search.AddToReporting = instance.web.Widget.extend({ + template: 'SearchView.addtoreporting', _in_drawer: true, start: function () { var self = this; @@ -1706,9 +1706,10 @@ instance.web.search.AddToDashboard = instance.web.Widget.extend({ return menu ? menu.children : []; }); }, - render_data: function(dashboard_data){ + render_data: function(dashboard_choices){ var selection = instance.web.qweb.render( - "SearchView.addtodashboard.selection", {selections: dashboard_data}); + "SearchView.addtoreporting.selection", { + selections: dashboard_choices}); this.$("input").before(selection) }, add_dashboard:function(){ diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index fdebb157607..3748aeb2d82 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1443,16 +1443,15 @@
-
-

Add to Dashboard

+
+

Add to Reporting

-

- +

+
- -