Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

25

How to send reports directly to printer in V7.0?

By
Ahmet Altinisik
on 2/13/13, 12:27 PM 16,906 views

I am currently using report_to_printer module for printing my invoices to my dot-matrix printer by just clicking print button. Module sends a copy of the report to the cups server and cups prints the report from a network attached printer.

This scenario works well on our local network with openerp 6.1. Now I want to upgrade to the 7.0 and I also would like to be able to send reports directly to the printer from clients on both local network and Internet.

With 6.1 GTK client we had opportunity to define a processor and send some of the file formats directly to the printer on the client side.

My question is: Is there a method for 7.0 to send a reports directly to the printer easily from client side?

Additional Info: I find an open source java project named jzebra http://code.google.com/p/jzebra/ for sending documents directly to the printer from web based applications. Can this integrated into openerp?

Additional Info 2: There is an another project for firefox to turn print dialog on and off. AttendPrint Not what I am looking for but an additional information for printing.

This would be a great addition, if it exists, many users creating many reports in pdf = fast fill up of downloads folder :)

Mr Rhys Park
on 2/13/13, 3:54 PM

With the volume of invoices we process - 500 per day - we need a quick & simple ability to print directly to printer and in a batch mode rather than one at a time via a PDF - this worked in 6.0 via PrintJob app - will it appear in 7.0?

andrew rowley
on 3/11/13, 10:01 AM

Firefox can be set to preview the PDF and then you can choose 'save as' or 'print'

john
on 4/17/13, 10:51 AM

Firefox seems to not recognize the correct MIME type, and still prompts the user to open the pdf in Adobe Reader. Also, many users are using Dot Matrix printers to print invoices, and pdf's do not come out well. Is there a real solution to this problem? I would think this is a VERY common issue for ERP users...

tim diamond
on 7/24/13, 8:02 PM
4

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 3/15/14, 7:52 PM

Hi;

The module base_report_to_printer works fine with V 7.0 and 8.0

base_report_to_printer for V7.0

base_report_to_printer for V8.0

In the same repo, the module printer_tray allows to choose the tray of the printer.

And if you are using Aeroo Reports, you can use report_aeroo_direct_print (from Alistek).

But this module is not working for the openerp client which has been accessed the server remotely, I could not detect the printers using the button Update Printers from Cups, with the printer connected. Can you suggest a way to resolve this?

Abhishek H Menon
on 7/27/16, 11:17 AM
6

Nicolas Bessi

--Nicolas Bessi--
1590
| 5 7 8
Lausanne, Switzerland
--Nicolas Bessi--
Nicolas Bessi
On 2/14/13, 9:16 AM

Hello,

It will be possible to integrate jzebra into OpenERP. You will need to (optionally) redefine the print controller in Python and a part of Javascript in webclient.

The main concern here is that jzebar use a Java Applet, so you will have all the trouble related to this technology. You have to authorize the applet, it may have security issues, Applet may be deactivated by default etc.

Not all of the terminals will have this applet running, just the ones with an attached invoice or label printer and java authorization can be done while printer setup.

Altınkaya Elektronik Cihaz Kutuları imalat Ticaret ltd sti, Ahmet Altinisik
on 2/14/13, 6:54 PM

Jzebra might not be the definitive method for printing POS receipts directly on a dot-matrix printer rapidly when the customer has finished his(her) shopping. However I understand it is possible to implement JZEBRA as an alternative to a fully integrated option in OpenERP. I would like more information to redefine the printer controller in Python and if necessary the related part of Javascript in webclient;

AD LIBITOM, michel Guénard
on 2/25/13, 6:37 PM

Can javascript send commands to the printer ?

Altınkaya Elektronik Cihaz Kutuları imalat Ticaret ltd sti, Ahmet Altinisik
on 2/25/13, 7:24 PM

Yes I can; and Jzebra was able to print its tests. Now there remains how to integrate Jzebra with OpenErp, if I understood correctly your comments. Would you add some direction in order to make such implementation for V7 Online. AttendPrint tried: does'nt succeed printing the Pos receipt in a decent format.

AD LIBITOM, michel Guénard
on 3/6/13, 8:40 AM
0

Andreas Maertens

--Andreas Maertens--
912
| 5 5 7
Finsterwalde, Germany
--Andreas Maertens--

I develop odoo8.0 modules

Andreas Maertens
On 5/27/13, 10:38 AM

There is a module from 6.1 that doesn't need that much customization to work in 7.0

http://v6apps.openerp.com/addon/8736

The only customization it really need to work in 7.0 is in the views to remove: <field name="type"> and to add: <form version="7.0"> The code itselfs works fine with mine.

Btw: It works with CUPS in Linux servers.

0
Juan Pizarro
On 3/15/14, 5:07 PM

Hello,

Some time ago I made a proof of concept with jzebra and OpenERP. You can see a video in www.youtube.com/watch?v=-NrwpS9Cy1s www.youtube.com/watch?v=GjVpjfWkUVQ

The source code is in github.com/jpizarrom/OpenERP-jZebra

0

Nicolas Bessi

--Nicolas Bessi--
1590
| 5 7 8
Lausanne, Switzerland
--Nicolas Bessi--
Nicolas Bessi
On 2/14/13, 9:05 AM

Hello,

There is an addon in community branches https://launchpad.net/report-print-send base_report_to_printer. It seems that it as not be ported to version 7.0 yet.

Regards

0
Egor Tsinko
On 2/25/13, 6:20 PM

Hi, Here is solution we use. No python code required! You can install base_report_to_printer module which lets send any report in a pdf file to a CUPS server. And you can connect ZPL and EPL Zebra printers to CUPS. All you need to do is to install both CUPS and base_report_to_printer, connect your printers to CUPS (we use ZebraLink to connect printers to a local network) and set to which printers reports will be sent.

0
Branimir
On 3/14/13, 5:34 AM

Hi, in our company we were just working around this problem. We have little Okipos ticket printer connected to a Windows 7 machine. As a workaround we are using:

  • AttendPrint plugin for Firefox to avoid the popup print dialog
  • Bullzip PDF Printer set up to create pdf in a dedicated folder (you can disable configuration popups from the settings menu)
  • FolderActions - a little program that listens to the dedicated folder and runs a custom action
  • pdftotext from Xpdf for windows - to convert the created pdf to text file
  • the action in FolderActions is something like

    pdftotext.exe -layout -enc UTF-8 output.pdf output.txt

    notepad /p output.txt

I have the driver for the printer installed and I use the notepad approach to send it through the driver, print file.txt does not produce the best output. Maybe there is much simpler solution but this is what I made it work with. I tried Report-Designer plugin for OpenOffice but without success. Don't really know how to use it. I'm sure that there is a way better way though.

Greetings

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

12 follower(s)

Stats

Asked: 2/13/13, 12:27 PM
Seen: 16906 times
Last updated: 1/26/16, 12:30 PM