Direct Print to Dot Matrix Printer

by
Odoo          
v 12.0 Third Party 25

51.53 €

You bought this module and need support ? Click here !
Technical name vit_dotmatrix
LicenseOPL-1
Websitehttp://www.vitraining.com
Read description for v 11.0 v 10.0 v 8.0
Required Apps Inventory (stock)
Invoicing (account)
Purchase (purchase)
Sales (sale)
Technical name vit_dotmatrix
LicenseOPL-1
Websitehttp://www.vitraining.com
Read description for v 11.0 v 10.0 v 8.0
Required Apps Inventory (stock)
Invoicing (account)
Purchase (purchase)
Sales (sale)

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