Skip to Content
Menu
This question has been flagged
1 Atsakyti
3517 Rodiniai

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

Portretas
Atmesti
Autorius Best Answer


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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
rugs. 19
3327
1
saus. 20
5060
0
lapkr. 16
4354
0
rugs. 23
1914
0
rugs. 23
1609