Skip to Content
Menu
This question has been flagged
1 Reply
19579 Views

I've installed enterprise version of odoo15 in Linux VPS Server . I just want to know where does the attachments are stored in the server(directory), Can anyone assist me with this?

Avatar
Discard

This depends on your installation method.

Author

I've followed the yethene script on github and installed it outside root directory in a seperate folder.

Best Answer

By default, attachments are stored outside the database, as binary files on the server.


The default location for databases hosted on a server are defined in the server configuration file.

From https://www.odoo.com/documentation/15.0/developer/misc/other/cmdline.html#cmdoption-odoo-bin-D

-D,--data-dir

directory path where to store Odoo data (eg. filestore, sessions). If not specified, Odoo will fallback to a predefined path. On Unix systems its one defined in $XDG_DATA_HOME environmental variable or ~/.local/share/Odoo or /var/lib/Odoo.


A database specific location can be set via the System Parameter ir_attachment.location as discussed at https://www.odoo.com/forum/help-1/where-are-document-attachments-stored-529 although the default location for attachments has been the database since version 8 (they were stored in the database prior to that).


If you do not provide a location in the configuration file or the database, Odoo will default to:

.local/share/Odoo/filestore

this folder is created in the home folder of the User who is starting the Odoo process.


Avatar
Discard
Related Posts Replies Views Activity
1
Apr 25
4498
2
Aug 24
9730
0
Dec 23
1014
0
Apr 23
1869
1
Feb 23
2243