İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3293 Görünümler

i want created a button for do ctrl+p.

is any idea?

thanks

Avatar
Vazgeç
Üretici En İyi Yanıt

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

Avatar
Vazgeç
En İyi Yanıt

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.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 19
3490
0
Eyl 23
1874
0
Eyl 23
1576
2
Mar 23
10019
2
Mar 23
2435