跳至内容
菜单
此问题已终结
2 回复
3285 查看

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.

形象
丢弃
相关帖文 回复 查看 活动
1
9月 19
3486
0
9月 23
1861
0
9月 23
1575
2
3月 23
10001
2
3月 23
2430