Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3286 Lượt xem

i want created a button for do ctrl+p.

is any idea?

thanks

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 19
3489
0
thg 9 23
1862
0
thg 9 23
1575
2
thg 3 23
10002
2
thg 3 23
2431