Skip to Content
Menu
This question has been flagged

I want to add a keyboard shortcut (for example, Alt + I) to see the products menu under inventory module. I have added the following code in a custom dashboard and it works fine, but it only works in that dashboard. I want the user to redirect to the Products menu from any screen in Odoo backend. Is there any way?


$(document).keypress(function(event){
var keycode = (event.keyCode ? event.keyCode : event.which);
if(keycode == '13'){
$('#product_popup_menu').click();// id of a button in the dashboard that will call a jquery function
}
});
Avatar
Discard
Related Posts Replies Views Activity
2
Jul 22
10578
0
Mar 22
5000
7
Dec 21
9373
1
Aug 19
3256
0
Feb 17
1939