Odoo Help


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.


View attachment within the browser

Ali Saleh
on 2/28/13, 10:27 AM 2,159 views

Can we view the attached file in a new window rather than download it?

I don't want to modify the settings of the browser to open all downloaded files !

If yes, how to?

In fact, there are two problems: First, e.g. JPG or PNG attachments cannot be viewed in the browser, second, when downloading the attachment instead, the MIME type is not set correctly, so that the browser has no chance to open the right external viewer program.

on 7/8/13, 1:39 PM
On 5/9/16, 3:54 AM

You can use attachment_preview odoo apps to preview of a document attachment by new browser.



Fabrice Henrion (fhe)

--Fabrice Henrion (fhe)--
| 7 7 8
San Francisco, United States
--Fabrice Henrion (fhe)--

Director Odoo USA

Fabrice Henrion (fhe)
On 2/28/13, 11:39 AM

It depends what filetype you are talking about (pdf?), and it depends the browser plugins you have installed/enabled.

If you are talking about opening pdfs in a new browser window, you have to configure your browser for that and make sure that the acrobat reader browser plugin is activated for that browser.

Also, every document you ever see on your computer is downloaded one way or another. Whether it is in temporary internet files or on your desktop. So, avoiding to "download" is not possible, but I'm assuming that you refer to "downloading to a temporary location".

Thanx Fabrice, This is not the answer I'm looking for, consider I want to open jpg attachment, any browser could handle jpg file, but with openerp, when you select the jpg attachment, it will be downloaded !!, What I want is to open it in a new window and load the jpg file inside the browser.

Ali Saleh
on 2/28/13, 11:41 AM

In fact the problem is exactly that the mime type given for attachments by the server is wrong. Otherwise the browser would have displayed it instead of downloaded it.

Christophe Radja
on 2/27/14, 12:08 PM

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

2 follower(s)


Asked: 2/28/13, 10:27 AM
Seen: 2159 times
Last updated: 5/9/16, 3:54 AM