Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3572 Widoki

i want created a button for do ctrl+p.

is any idea?

thanks

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 19
3736
0
wrz 23
2192
0
wrz 23
1937
2
mar 23
10422
2
mar 23
2705