Skip to Content
Menu
This question has been flagged
1 Reply
1605 Views

Is there any way to print my invoice payment receipts as a ticket and not as A4 size?


I manage office sales. Most of the payments I receive from customers are wire transfers. Nonetheless, some customers rather pay physically at my office. In these cases, they request a printed payment receipt, but Odoo’s standard payment receipt doesn’t work for me as it is too big. It works fine when I send it by email, but is there any option to print it as a ticket for physical transactions?


Versión en español: click aquí

Avatar
Discard
Author Best Answer

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.

Avatar
Discard
Related Posts Replies Views Activity
1
Feb 25
8
2
Jun 25
2620
1
Jul 24
2814
1
Apr 24
1354
1
Jul 23
2349