Direct Print to Dot Matrix Printer

by
Odoo

118.40

v 8.0 v 10.0 v 11.0 v 12.0 Third Party 85
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Inventory (stock)
Invoicing (account)
Purchase (purchase)
Lines of code 379
Technical Name vit_dotmatrix
LicenseOPL-1
Websitehttps://vitraining.com
Versions 16.0 14.0 15.0 8.0 13.0 10.0 11.0 12.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Inventory (stock)
Invoicing (account)
Purchase (purchase)
Lines of code 379
Technical Name vit_dotmatrix
LicenseOPL-1
Websitehttps://vitraining.com
Versions 16.0 14.0 15.0 8.0 13.0 10.0 11.0 12.0

DEMO

CLICK HERE FOR DEMO

username demo. password demo.

  • To run the demo, you need to install the Proxy Printer Server on your local computer attached to the printer. Go to the installation section below to install the proxy.
  • You can access the Sales, Purchase, Invoice, and Picking menu and open a document to print
  • Find the Dotmatrix Tab on each document, click the Refresh Printer Data to load the dotmatrix data
  • Click the Dot Matrix printer button on the header of each document to send the data to dot matrix printer

Introduction

  • this is modul is used to print PO, SO, Picking, Invoice directly to dot matrix printer
  • no special hardware needed
  • using python flask based printer proxy script
  • adds printer_data field on account.invoice, sale.order, purchase.order, stock.picking
  • uses printer template data from email.template named "Dot Matrix *"
  • you can easily modify the template to adjust your printed documents

One of the biggest challange in implementing Odoo in some companies especially Indonesia which already have so many daily transactions (like thousands of invoices per day), is printing to Dot Matrix Printer!

Yes, it is common in Indonesia's big trading companies to use Dot Matrix printer to print PO, SO, Invoices, Picking List to efficiently print using continuous and carbonized forms so they can print 3-4 document at once. Printing PDF file to dot matrix printers that can take the whole day just to print :(

This can be a big issue in Odoo standard, because it uses PDF for every document printing. The print result is good when printed at deskjet/ laserjet printers, but when it comes to dotmatrix, the font is broken and almost unreadable. This is because the dot per inch is too small. We can set it up bigger, but it will take some more time to print to dot matrix printer. It is impractical when it comes to print like 5000 invoices daily!

The solution is to use a proxy printing techniques. We make a small web server application at the client computer that is connected to the printer. That small application listen at a specific HTTP port and ready to receive request from Odoo's web browser client. At server side, we add an add-on that will send the raw data to print to that local application via HTTP post. The raw data is automatically composed based on the document to print using template.

The result is: AMAZING! printing is now direct to dot matrix printer with it's super fast speed and perfect printing result!

Proxy Installation on Linux/Mac/Raspberry Pi

  • copy the proxy python script from the folder vit_dotmatrix/static/py-printer-linux.zip to you local computer
  • for demo purpose, you can download it from here
  • unzip into any folder on your local client computer where the printer is connected
  • install the required Python modules: flask and flask-cors, you can use pip install -r requirements.txt command
  • follow the INSTALL.TXT instruction on how to install and run the script
  • you can then print Invoice, SO, PO directly to local dotmatrix printer

Proxy Installation on Windows with Python

  • copy the proxy python script from the folder vit_dotmatrix/static/py-printer-win.zip to you local computer
  • for demo purpose, you can download it from here
  • unzip into any folder on your local computer where the printer is connected
  • install python on your windows computer by downloading the executable from http://python.org
  • install the required Python modules: flask and flask-cors, you can use pip install -r requirements.txt command
  • install py32win from https://github.com/mhammond/pywin32/releases
  • you can then print Invoice, SO, PO directly to local dotmatrix printer

Determining which printer to use

Edit the file /py-printer-win/printer.py. At line 1: change PRINTER_NAME value to the exact printer name detected on your local computer. You can find this name from Windows Printer Device Manager control panel.

For Linux/Mac/Raspi it uses the default printer as assinged by the LPR printer system.

Detailed technical information

Want to customize more and get the detailed technical information? How to modify the template, add more features on other Odoo object? We have a Udemy course for this particular topic.

Click here to go to the Udemy course now!

Find our other interesting modules that can make your life easier: https://www.odoo.com/apps/modules/browse?search=vitraining

Contact and Support

Contact Us: info[at]vitraining.com
Facebook : www.facebook.com/trainingOdoo
YouTube: www.youtube.com/channel/UCfLiSpb5nKcurnRIZse8zgA
Web: shop.vitraining.com

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
There are no ratings yet!
by
Jonathan
on 10/26/21, 11:59 PM


I would like to know what other applications are necessary for its operation?


kind of problem
by
ahmed
on 12/4/19, 3:01 AM

dotmatrix.vitraining.com says failed

Re: kind of problem
by
Akhmad Daniel Sembiring
on 12/4/19, 5:03 PM Author

first , install the proxy program on your local computer. download from here: http://dotmatrix.vitraining.com/vit_dotmatrix/static/py-printer-win.zip and follow the installation steps above.


by
ahmed
on 11/4/19, 5:21 AM

I want to experience the Dot Matrix printer But I'm having trouble trying it I think the problem is related to proxy Please help so that I can try it And then buy them Thank you

Re:
by
Akhmad Daniel Sembiring
on 11/4/19, 4:15 PM Author

What kind of problem do you have?


by
sistemas@seranco.com.mx
on 10/14/19, 11:26 PM Confirmed Purchase

it can be used on internal moves?

Re:
by
Akhmad Daniel Sembiring
on 10/15/19, 12:34 AM Author

yes, a sample is for DO


hello, i need help
by
Dionisio Torres
on 8/7/19, 1:53 PM

Does it work for epson ticket printers? works local and online

Re: hello, i need help
by
Akhmad Daniel Sembiring
on 8/7/19, 5:57 PM Author

Yes it does, For remote you need a print server


by
Dionisio Torres
on 8/6/19, 8:35 PM

hola funciona para impresoras de tickets?

Re:
by
Akhmad Daniel Sembiring
on 8/6/19, 9:27 PM Author

English please?