Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3287 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
why the print button does not work แก้ไขแล้ว
1
ก.ย. 19
3489
0
ก.ย. 23
1863
0
ก.ย. 23
1575
2
มี.ค. 23
10004
Cacher le bouton "créer" d'une liste แก้ไขแล้ว
2
มี.ค. 23
2432