[FIX]Fixed the issue of translation on add to dashboard selection choices, dashboard choices are not translated.

bzr revid: msh@openerp.com-20130328105213-fjjdntjgtmyxo3by
This commit is contained in:
Mohammed Shekha 2013-03-28 16:22:13 +05:30
parent fc04522286
commit ed7a199519
1 changed files with 2 additions and 1 deletions

View File

@ -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(); }