Odoo Help


13 Answers
7/17/18, 4:21 AM



| 5 4 9
Baarn, Netherlands
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.

1 Comment
AD LIBITOM, michel Guénard
4/15/13, 5:51 PM

"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/

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

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

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

Mario Arias Badila
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
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.

4/17/13, 10:31 AM

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)

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

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

Ask a Question
Keep Informed
2 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now