Vaibhav (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/trunk-bug-856378-vda into lp:openerp-web.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
Bug #856378 in OpenERP Web: "where is the merging option in opportunity view"
https://bugs.launchpad.net/openerp-web/+bug/856378
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-856378-vda/+merge/76939
For Sidebar, Add Actions from `ir_values` if it's found.
--
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-856378-vda/+merge/76939
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/trunk-bug-856378-vda.
=== modified file 'addons/web/controllers/main.py'
--- addons/web/controllers/main.py 2011-09-21 13:05:49 +0000
+++ addons/web/controllers/main.py 2011-09-26 07:36:17 +0000
@@ -812,6 +812,12 @@
We need to clean all those actions in order to ensure correct
round-tripping
"""
+ if not toolbar['action']:
+ action_type = 'tree_but_action' if view_type == 'form' else 'client_action_multi'
+ ir_values_actions = req.session.model('ir.values').get(
+ 'action', action_type, [(model, False)], False)
+ if ir_values_actions:
+ toolbar['action'].extend(map(lambda x: x[-1], ir_values_actions))
for actions in toolbar.itervalues():
for action in actions:
if 'context' in action:
_______________________________________________
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