Odoo Help


Is their any simple way to Print reports directly instead of saving First ?

on 4/10/13, 11:09 AM 13,733 views

When ever Print button is clicked, Save as Dialog appears.User has to save the pdf file and open it then print. If the task is print, why user should go through so many steps?

Is there any way to Print directly to Default Printer if Print button is pressed?

Thank you

You have already filed a similar one:http://help.openerp.com/question/10802/how-do-i-open-pdf-file-directly-while-printing-instead-of-save-as-prompt/ please close this to avoid duplicates.

Naresh Soni (nch)
on 4/10/13, 2:06 PM

Hi Naresh, The previous one I want to open as PDF file directly instead of Save as Prompt. This one Print Directly without generating PDF. This two are different. Thanks

on 4/11/13, 12:18 AM

Anand ! I edited the title ! So no more confusion. :-D

Naresh Soni (nch)
on 4/11/13, 3:35 AM

Don't know how, but this video shows exactly what we need: http://www.youtube.com/watch?v=7PPrVxgJ934 . Says the module will be released soon

Poiesis Consulting SRL, Nico Bustillos
on 6/4/13, 12:14 PM
On 4/17/13, 10:38 AM

We tried IE and Chrome browsers but Firefox was best and can be set to preview instead of download. The PDF loads in the browser window and then you just 'right click' print or 'file->print'...

I think that the problem sometimes occurs when the web server you are downloading the PDF from does not serve the PDF with the correct MIME type.

When the web server serves a PDF with the correct MIME type, Chrome previews it. When the web server serves a PDF with the incorrect or generic MIME type (application/octet-stream), Chrome downloads it.

If the server returns a Content-Type of text/html Chrome will display/open the PDF directly in the browser. However, if the server returns a Content-Type of application/pdf then the browser will prompt the user to save/download the PDF.

I found this code on stackoverflow that maybe could be used in openErp: open(PDF, "the.pdf") or die "could not open PDF [$!]"; binmode PDF; my $output = do { local $/; <pdf> }; close (PDF);

print "Content-Type: application/pdf\n"; print "Content-Length: " .length($output) . "\n\n"; print $output

Source: http://superuser.com/questions/219870/how-to-open-pdf-in-chromes-integrated-viewer-without-downloading-it

Grégoire Krieg (gkr)
on 5/10/13, 10:31 PM


| 5 4 7
Baarn, Netherlands
On 4/15/13, 5:23 PM

Reports are PDF-files, and you have to open them one way or another to print them.

It is not needed to save the PDF-files, just open them and click on print or use CNTR-P.

On my Windows machine, I can right-click on a PDF-file (a saved one), and select the option 'Print'.

Maybe someone made or will make an extention to print from within the browser, this might be Javascript. That will solve your question.

"Maybe someone made or will make an extention to print from within the browser, this might be Javascript. That will solve your question." I consider such an extension as mandatory for printing POS receipts with any dot printer (they can not print pdf files nor images); see http://help.openerp.com/question/3916/printable-payment-receipts-in-openerp-7/

AD LIBITOM, michel Guénard
on 4/15/13, 5:51 PM
Mario Arias Badila
On 4/30/15, 11:09 PM

For windows clients, we use filetypesman, from http://www.nirsoft.net/utils/file_types_manager.html

Then we change the default action for pdf files to "print", and that at least saves the user a couple clicks each time...

There are also a couple modules that enable direct printing.  Just search the web and you will find them (but I think most are not updated to v8+ )

Finally, for POS clients, we install a POSBox and enable direct printing from POS client...



Ram S
On 4/15/13, 8:15 PM

CNTR-P is something we can't send to customers. Printing directly is one of the important feature everyone wants it. I hope OpenERP team will consider this as one of the core needs.

We tried another SAAS web based system before choosing openErp and they had direct printing. We had to load some software (print server software) onto one of the PC machines in the local network. This solution worked great on the PC machines and even from the Windows handheld devices (WinCE web application on handheld motorola symbol machines)

on 4/17/13, 10:31 AM

What "print server software" did you use @john? CUPS? was that on a windows or linux server?

Timothy Solomon
on 1/27/14, 5:13 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 4/10/13, 11:09 AM
Seen: 13733 times
Last updated: 5/21/15, 2:25 PM