Sananaz (Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-5302-sma into
lp:openobject-client-web/6.0.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #716300 in OpenERP Web Client: "context not passed in tree_but_action"
https://bugs.launchpad.net/openobject-client-web/+bug/716300
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-5302-sma/+merge/60466
Hello,
Open Chart of Accounts
Accounting > Charts > Chart of Accounts
Then click on any `code` of account chart, then open new tab with the journal
items this time need to pass context.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-5302-sma/+merge/60466
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-5302-sma.
=== modified file 'addons/openerp/controllers/actions.py'
--- addons/openerp/controllers/actions.py 2011-04-19 14:08:31 +0000
+++ addons/openerp/controllers/actions.py 2011-05-10 07:26:00 +0000
@@ -459,11 +459,12 @@
"""
actions = None
+ ctx = dict(data.get('context', {}), **rpc.session.context)
if 'id' in data:
try:
id = data.get('id', False)
if (id): id = int(id)
- actions = rpc.session.execute('object', 'execute', 'ir.values', 'get', 'action', keyword, [(data['model'], id)], False, rpc.session.context)
+ actions = rpc.session.execute('object', 'execute', 'ir.values', 'get', 'action', keyword, [(data['model'], id)], False, ctx)
actions = map(lambda x: x[2], actions)
except rpc.RPCException, e:
raise e
=== modified file 'addons/openerp/controllers/tree.py'
--- addons/openerp/controllers/tree.py 2011-04-19 14:07:21 +0000
+++ addons/openerp/controllers/tree.py 2011-05-10 07:26:00 +0000
@@ -191,7 +191,7 @@
id = item.pop('id')
record = {
'id': id,
- 'action': url('/openerp/tree/open', model=model, id=id),
+ 'action': url('/openerp/tree/open', model=model, id=id, context=ctx),
'target': None,
'icon': None,
'children': [],
_______________________________________________
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