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

i want created a button for do ctrl+p.

is any idea?

thanks

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hi silver Star

those codes are in js format. i do not have any idea for js language. please help me in another way.

thanks

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

This module may give an idea - https://apps.odoo.com/apps/modules/8.0/wct_keyboard_shortcuts/


Use Above  module code.

$.ctrl('D', function() {
$('a[data-section="other"]:contains("Duplicate")').each(function() {
if($(this).parents('.oe_sidebar_print').length == 0){
$(this).click();
}
});

});

you can write your function similar to this.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 19
3490
0
سبتمبر 23
1866
0
سبتمبر 23
1575
2
مارس 23
10008
2
مارس 23
2433