Skip to Content
Menu
This question has been flagged
2 Replies
3258 Rodiniai

i want created a button for do ctrl+p.

is any idea?

thanks

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugs. 19
3472
0
rugs. 23
1855
0
rugs. 23
1552
2
kov. 23
9984
2
kov. 23
2417