Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3653 Переглядів

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
}
});
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 22
12523
0
бер. 22
6066
7
груд. 21
10761
1
серп. 19
4466
0
лют. 17
2932