跳至內容
選單
此問題已被標幟

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
}
});
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 22
12499
0
3月 22
6020
7
12月 21
10705
1
8月 19
4448
0
2月 17
2917