Jigar Amin (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client/trunk-bug-920033-jam into
lp:openobject-client.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #920033 in OpenERP Server: "6.1RC1: 'uid' not available in attrs
evaluation context"
https://bugs.launchpad.net/openobject-server/+bug/920033
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-920033-jam/+merge/103804
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.
--
https://code.launchpad.net/~openerp-dev/openobject-client/trunk-bug-920033-jam/+merge/103804
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client/trunk-bug-920033-jam.
=== modified file 'bin/modules/action/main.py'
--- bin/modules/action/main.py 2011-12-09 11:22:31 +0000
+++ bin/modules/action/main.py 2012-04-27 06:31:17 +0000
@@ -91,7 +91,7 @@
return
# Updating the context : Adding the context of action in order to use it on Views called from buttons
if datas.get('id',False):
- context.update( {'active_id': datas.get('id',False), 'active_ids': datas.get('ids',[]), 'active_model': datas.get('model',False)})
+ context.update( {'active_id': datas.get('id',False), 'active_ids': datas.get('ids',[]), 'active_model': datas.get('model',False), 'uid': rpc.session.uid})
context.update(tools.expr_eval(action.get('context','{}'), context.copy()))
if action['type'] in ['ir.actions.act_window', 'ir.actions.submenu']:
for key in ('res_id', 'res_model', 'view_type', 'view_mode',
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp