콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3623 화면

hi

i want to create a button to do the hotkey "ctrl+p".

the following code in my .xml file:


<button string="Print PDF" name="print_report" type="object" class="oe_highlight" icon="fa-print"/>
and in .py file:
import pyautogui
@api.one
def print_report(self):
return pyautogui.hotkey('ctrl', 'p')
those codes are properly work in microsoft edge and internet explore , but not work in chorome. why?
please help me to find the solution.
thanks

아바타
취소
작성자 베스트 답변


    return pyautogui.hotkey('ctrl', 'shift','p')
It's done.


아바타
취소
관련 게시물 답글 화면 활동
2
9월 19
3490
1
1월 20
5176
0
11월 16
4455
0
9월 23
2095
0
9월 23
1834