Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juli 22
12560
0
März 22
6080
7
Dez. 21
10771
1
Aug. 19
4478
0
Feb. 17
2943