[FIX]Fixed the issu of context not passed in dashboard choice list request.

bzr revid: msh@openerp.com-20130329050103-ktaueettzk1fuc75
This commit is contained in:
Mohammed Shekha
2013-03-29 10:31:03 +05:30
+2 -1
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(); }