Usecase
For this case, the first step will be to create a new paper format in Odoo. Activate developer mode > Settings > Technical > Reporting > Paper format. You can search “paper format” in the main dashboard as well. Note: Studio will be required for some configurations.

Once in payment format, click new and configure the format as following:

Page height and width will vary depending on your paper roll’s dimensions. For this case, our paper roll is 80mm wide, thus Page width = 80. Some printers detect the white space at the bottom and avoid it (in this case Epson TM-T20III). If your printed ticket leaves a huge white space below, you may edit the pdf and trim this whitespace before printing it.
The Top Margin represents the space the document will leave for the heather of the document, which contains the company’s information and its logo. You may adjust this parameter (29 mm seems to work just fine) depending on how much information is displayed in the Address field of the document layout of the company (can be edited in general settings):

The Header Spacing refers to the space between the top margin and where the payment reference will be displayed. I recommend the Header Spacing to be ≥ the Top Margin value to prevent information from overlapping (30mm in this case).
Output DPI will allow us to fit our information properly. The bigger the DPI, the smaller the output will be. DPI will also impact printing resolution.
E.g. Smaller DPI (100):

E.g. Higher DPI (140):

Once the paper format is ready, we need to create the payment report:
With developer mode active, navigate to Accounting > Customers > Payments > Click on studio > Reports tab > … in Payment Receipt > Duplicate.



Configure as following:

Now, whenever you want to print your payment receipt, the options will be shown as following:

After selecting ticket format, a pdf will be saved in your computer and you will need to open it, click on print and select your destination printer.
Once printed your ticket will look like this:

After printing your ticket, you might have to make adjustments in margins and/or Output DPI. Test printing while modifying values in the paper format until you reach your desired design. Consider that the values shown for the paper format may also have to be modified depending on the document layout design selected in the company’s general settings.