I added a custom button in POS to generate a pdf. How can I get the same information when printing the receipt from the standard button.
def print_report(self):