Chirag Patel (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/6.1-opw-585175-cpa into lp:openerp-web/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-585175-cpa/+merge/146109

Hello,

Can't set shortcut on menu action wizard.

Demo: 

HR > Attendances >  Sign in / Sign out
or
Accounting > charts > Charts of analytic accounts

Observed: Popup open without star img(to set shortcut) and title.
Expected: Star img and title should be display when popup open from menu or 
shortcut.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-585175-cpa/+merge/146109
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/6.1-opw-585175-cpa.
=== modified file 'addons/web/static/src/js/chrome.js'
--- addons/web/static/src/js/chrome.js	2012-07-05 10:27:24 +0000
+++ addons/web/static/src/js/chrome.js	2013-02-01 12:57:21 +0000
@@ -727,6 +727,7 @@
                     self.session.active_id = id;
                     self.rpc('/web/menu/action', {'menu_id':id}, function(ir_menu_data) {
                         if (ir_menu_data.action.length){
+                            ir_menu_data.action[0][2]['from_menu'] = true;
                             self.on_action(ir_menu_data.action[0][2]);
                         }
                     });

=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js	2012-09-26 11:17:35 +0000
+++ addons/web/static/src/js/views.js	2013-02-01 12:57:21 +0000
@@ -116,7 +116,7 @@
             action_buttons : !popup,
             sidebar : !popup,
             pager : !popup,
-            display_title : !popup
+            display_title : !popup || action.from_menu === true
         }, action.flags || {});
         if (!(type in this)) {
             console.error("Action manager can't handle action of type " + action.type, 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

Reply via email to