Merge lp:~openerp-dev/openobject-client/trunk-bug-920033-jam into lp:openobject-client

Proposed by Jigar A.
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-client/trunk-bug-920033-jam
Merge into: lp:openobject-client
Diff against target: 12 lines (+1/-1)
1 file modified
bin/modules/action/main.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-client/trunk-bug-920033-jam
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+103804@code.launchpad.net

Description of the change

   The MP fixes the Problem of Passing : "uid" in the context sent through fields_view_get (as attrs are partially processed server-side for the client). So rest part of this will be fixed in Server Fix.
The Fix is Part of the Bug : https://bugs.launchpad.net/openobject-server/+bug/920033
Kindly review this.
Thank You.

To post a comment you must log in.

Unmerged revisions

2058. By Jigar A.

[IMP] Added a uid in the context sent through fields_view_get (as attrs are partially processed server-side for the gtk-client)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/modules/action/main.py'
2--- bin/modules/action/main.py 2011-12-09 11:22:31 +0000
3+++ bin/modules/action/main.py 2012-04-27 06:31:17 +0000
4@@ -91,7 +91,7 @@
5 return
6 # Updating the context : Adding the context of action in order to use it on Views called from buttons
7 if datas.get('id',False):
8- context.update( {'active_id': datas.get('id',False), 'active_ids': datas.get('ids',[]), 'active_model': datas.get('model',False)})
9+ context.update( {'active_id': datas.get('id',False), 'active_ids': datas.get('ids',[]), 'active_model': datas.get('model',False), 'uid': rpc.session.uid})
10 context.update(tools.expr_eval(action.get('context','{}'), context.copy()))
11 if action['type'] in ['ir.actions.act_window', 'ir.actions.submenu']:
12 for key in ('res_id', 'res_model', 'view_type', 'view_mode',