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.

0

How to know where Attachments are saved

By
yuri
on 8/22/15, 6:21 PM 832 views

If I have a clean instalation and I want to know where are the attachements going to be stored what I should do?

It is true that the default mode of saving the binary attachments is inside filestore, and not in db?

0
zhanghao章浩
On 8/22/15, 7:41 PM

look there:https://github.com/odoo/odoo/issues/2811



odony commented on 7 Oct 2014

For the record, some clarifications:

In Odoo 8 the system parameter (ir_attachment.location) is still supported, but it is only used to switch between file-storage and db-storage, not for selecting the location (for security reasons, see below). It defaults to file-storage, as explained previously.

The filestore location can only be controlled via the configuration file (data_dir), not via the database, for security purposes. Otherwise external users might trick the system into reading arbitrary files. It defaults to a platform-specific location inside the home directory of the user executing the service.

The 'Attachments' menu only appears when the Document module is installed (this was already the case in 7.0). If you do not install it, attachments are only available as part of the message history under most documents.

The backup format has been changed to be a Zip archive containing both a database dump and a copy of the filestore. During a restore it will be extracted and copied back into the filesystem. This does not mean that taking backups will move your filestore into the database, it only means that the filestore is backed up and restored along with the database contents.

0

Prakash Sharma

--Prakash Sharma--
815
| 2 1 4
Delhi, India
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

Prakash Sharma
On 4/18/16, 3:22 AM

For view the attachment on odoo you can traverse this menu path :

Setting-> technical->Database structure->Attachments  

Here you can find all list of atttachemnts

http://prntscr.com/atmyms


0
Umesh Choudhari
On 4/16/16, 1:55 AM

Attachments are stored in <root directory of odoo>/.local/filestore

all the files are renamed using encryption so that there are no duplicate files

0

Temur

--Temur--
2896
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
On 8/24/15, 4:01 AM


If I have a clean instalation and I want to know where are the attachements going to be stored what I should do?

attachments are going to be saved in the filesyste, under home directory of user running the odoo instance (for example: "home_dir_path/.local/share/Odoo/filestore/db_name/..."), whereas files are not saved with original names, but file names are always saved in the database. so you can NOT find a file by name in the filesystem, but actually they are there. for more details, you can refer to my answer here.

It is true that the default mode of saving the binary attachments is inside filestore, and not in db?

yes.

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)

Stats

Asked: 8/22/15, 6:21 PM
Seen: 832 times
Last updated: 4/18/16, 3:22 AM