Document Management System

Odoo 8/9

Probuse Admin

You have to first set system parameters in Technical/Paramater/Systemparamter: "ir_attachment.location" with the value "file:///filestore".
------------------------------------------------------------------
Then,
Create myfolder inside /usr/share/openerp/ or any path you want.
------------------------------------------------------------------
Then set full path /usr/share/openerp/myfolder to --data-dir when you start the odoo server as below:
------------------------------------------------------------------
odoo@odoo:~/Desktop/odoo/st801$ python openerp-server --addons-path=addons --data-dir=/usr/share/openerp/myfolder
------------------------------------------------------------------
It will work. It will create filestore folder inside that myfolder and store your data. 
------------------------------------------------------------------
Note: Do not forget to give all permission to myfolder using command [sudo chmod 7777 -R /usr/share/openerp/myfolder].. 
------------------------------------------------------------------

Mail from AL

 


$DATADIR/filestore//

Attachment are stored oustide the database by default in v8 in

They are named as sha1 hash (almost like git objetcs).

Under Linux or any other freedesktop compliant distribution the data is 
$HOME/.local/Odoo and can be override with --data-dir=

This  question is still relevant the only difference is that we enabled it by 
default in v8.

For ftp access i recommend that you use the document_fs

https://github.com/odoo/odoo-extra/tree/master/document_fs
 
If sync back from ftp to ir.attachment you need to execute _document_fs_sync 
from a cron job or as post logout script from the ftp server.

Forum questions:

https://www.odoo.com/forum/help-1/question/ir-attachment-location-for-v8-45571

https://www.odoo.com/forum/help-1/question/where-are-document-attachments-stored-529

https://yelizariev.github.io/odoo/module/2015/03/06/product-image-filestore.html