Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3478 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns


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


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
sept. 19
3269
1
ian. 20
4988
0
nov. 16
4305
0
sept. 23
1856
0
sept. 23
1555