summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Shekha <msh@openerp.com>2013-03-28 16:22:13 +0530
committerMohammed Shekha <msh@openerp.com>2013-03-28 16:22:13 +0530
commited7a19951936cdb4e4469d130f3280f35b34eecd (patch)
tree3bb5e2aac08130915c272d4094664a931b0886ac
parentfc04522286417198e1f19b010cbacd02f56f1c3b (diff)
[FIX]Fixed the issue of translation on add to dashboard selection choices, dashboard choices are not translated.
bzr revid: msh@openerp.com-20130328105213-fjjdntjgtmyxo3by
-rw-r--r--addons/board/static/src/js/dashboard.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js
index 3489b686e1b..88d6f1e4864 100644
--- a/addons/board/static/src/js/dashboard.js
+++ b/addons/board/static/src/js/dashboard.js
@@ -343,8 +343,9 @@ instance.board.AddToDashboard = instance.web.search.Input.extend({
return this.load_data().done(this.proxy("render_data"));
},
load_data:function(){
+ var context = new instance.web.CompoundContext(this.getParent().dataset.get_context() || []);
var board = new instance.web.Model('board.board');
- return board.call('list');
+ return board.call('list', [context]);
},
_x:function() {
if (!instance.webclient) { return $.Deferred().reject(); }