openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #02410
[Merge] lp:~openerp-dev/openobject-client/dev_client_rga into lp:~openerp-dev/openobject-client/trunk-dev-client
Ravi Gadhia (OpenERP) has proposed merging lp:~openerp-dev/openobject-client/dev_client_rga into lp:~openerp-dev/openobject-client/trunk-dev-client.
Requested reviews:
Naresh Choksy (OpenERP) (nch-openerp)
Related bugs:
#702772 shortcut menu in menu bar doesn't work
https://bugs.launchpad.net/bugs/702772
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/dev_client_rga/+merge/46462
--
https://code.launchpad.net/~openerp-dev/openobject-client/dev_client_rga/+merge/46462
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client/dev_client_rga.
=== modified file 'bin/modules/gui/main.py'
--- bin/modules/gui/main.py 2011-01-07 10:03:46 +0000
+++ bin/modules/gui/main.py 2011-01-17 10:41:42 +0000
@@ -864,8 +864,10 @@
if action:
ctx = rpc.session.context.copy()
obj = service.LocalService('action.main')
- obj.exec_keyword('tree_but_open', {'model': 'ir.ui.menu', 'id': action[0],
- 'ids': [action[0]], 'report_type': 'pdf', 'window': self.window}, context=ctx)
+ if not isinstance(action, int):
+ action = action[0]
+ obj.exec_keyword('tree_but_open', {'model': 'ir.ui.menu', 'id': action,
+ 'ids': [action], 'report_type': 'pdf', 'window': self.window}, context=ctx)
if sc is None:
uid = rpc.session.uid
Follow ups