تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3640 أدوات العرض

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
يوليو 22
12509
0
مارس 22
6051
7
ديسمبر 21
10747
1
أغسطس 19
4457
0
فبراير 17
2921