Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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
}
});
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 22
12983
0
thg 3 22
6478
7
thg 12 21
11100
1
thg 8 19
4780
0
thg 2 17
3264