Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
3320 Vues

i want created a button for do ctrl+p.

is any idea?

thanks

Avatar
Ignorer
Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
sept. 19
3513
0
sept. 23
1907
0
sept. 23
1602
2
mars 23
10044
2
mars 23
2452