Merge lp:~openerp-dev/openobject-addons/7.0-opw-590511-msh into lp:openobject-addons/7.0

Proposed by Mohammed Shekha(Open ERP) on 2013-03-29
Status: Merged
Approved by: Naresh(OpenERP) on 2013-04-11
Approved revision: no longer in the source branch.
Merged at revision: 9210
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-590511-msh
Merge into: lp:openobject-addons/7.0
Diff against target: 14 lines (+2/-1)
1 file modified
board/static/src/js/dashboard.js (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-590511-msh
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) 2013-03-29 Approve on 2013-04-11
Review via email: mp+156106@code.launchpad.net

Description of the change

Hello,

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

Demo:- Open any search view and from search view go to add to dashboard, the choices inside selection is not tranlsated.

Thanks.

To post a comment you must log in.
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'board/static/src/js/dashboard.js'
2--- board/static/src/js/dashboard.js 2013-03-21 11:46:05 +0000
3+++ board/static/src/js/dashboard.js 2013-03-29 05:50:25 +0000
4@@ -343,8 +343,9 @@
5 return this.load_data().done(this.proxy("render_data"));
6 },
7 load_data:function(){
8+ var context = new instance.web.CompoundContext(this.getParent().dataset.get_context() || []);
9 var board = new instance.web.Model('board.board');
10- return board.call('list');
11+ return board.call('list', [context]);
12 },
13 _x:function() {
14 if (!instance.webclient) { return $.Deferred().reject(); }