How to hide print popup on POS & Invoice when Include Payment is checked?

We have one customer, who don’t want to make separate entry for Payment,
So we are using Include Payment (POS) checkbox.

How can we hide following popup OR rewrite it to show pdf instead of print?

Thanks,
Sam

Have you checked out new hooks.py?

Try adding js to pages.

#hooks.py
page_js = {"page":"public/js/file.js"}