Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
For example, when I click print on a sales quotation it downloads the pdf as a file. I would like it to open the PDF in a new tab in the web browser using a PDF web viewer plugin. This is the same action that happens when you click on a hyperlink in a webpage that points directly to a PDF file.
The reason for this is that I need to save the PDFs in a certain location with a certain name. Right now I have 50 Quotation_Order PDFs in my downloads folder.
hello, you can do it with this module,
[Openerp Web PDF Report Preview & Print] https://github.com/buke/openerp-web-pdf-preview-print.git
Another thought: give some naming to the PDF-files you want to save, so you can see the difference between them.
Settings -> Actions -> Reports
Click on report you want to change the default name of
in the field behind 'Save as Attachment Prefix' you can specify the name. You can use python code to specify the name. My situation:
((object.name or '!NoName')+('_')+time.strftime('%Y-%m-%d-%H-%M').replace('-','')+'.pdf')
This will use the name of the object, an _ and than the year (not century), month, day, hour and minute of the moment you pressed the print button for this object.
I tried it with Google Chrome on MacOS that natively deals with it and even try adding a dedicated module with no positive result. It keeps asking to download the .pdf file.
But Haylahi's option worked like a charm and I can now preview Openerp pdfs in my browser.
Why PDF and other file preview isn't natively included in OpenERP ? It seems to be a basical user need.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/29/13, 2:43 PM|
|Seen: 8253 times|
|Last updated: 3/29/15, 10:53 AM|