[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:
parent
fc04522286
commit
ed7a199519
|
@ -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(); }
|
||||
|
|
Loading…
Reference in New Issue