Anandkumar (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1067245-pan into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1067245 in OpenERP Web: "[trunk] 7.0 Error when I choose transaction 
from Favourites (Star)"
  https://bugs.launchpad.net/openerp-web/+bug/1067245

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1067245-pan/+merge/130960

Hello,
       Solved the issue for for favorite(star)in which When choose any Menu 
item from Favourites menu (star in upper right) the following error arise:
Uncaught TypeError: Object [object Object] has no method 'on_action'

Thanks,
PAN
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1067245-pan/+merge/130960
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1067245-pan.
=== modified file 'web_shortcuts/static/src/js/web_shortcuts.js'
--- web_shortcuts/static/src/js/web_shortcuts.js	2012-10-15 13:33:34 +0000
+++ web_shortcuts/static/src/js/web_shortcuts.js	2012-10-23 09:19:25 +0000
@@ -82,7 +82,7 @@
         // TODO: Use do_action({menu_id: id, type: 'ir.actions.menu'})
         self.rpc('/web/menu/action', {'menu_id': id}).then(function(ir_menu_data) {
             if (ir_menu_data.action.length){
-                instance.webclient.user_menu.on_action({action_id: ir_menu_data.action[0][2].id});
+                instance.webclient.user_menu.getParent().on_menu_action({action_id: ir_menu_data.action[0][2].id});
             }
         });
         this.$el.find('.oe_systray_shortcuts').trigger('mouseout');

_______________________________________________
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