Odoo Help


document_ftp for odoo 8

Akhil P Sivan
on 2/24/15, 6:23 AM 3,019 views

Is it possible to manage documents using ftp in odoo 8, like using module documents_ftp for v7?


You can try document_fs


It create a filesystem in the form /<model_name>/<id>/<attachement> then configure an ftp server to that directory. Upload is supported altought not transactional.

On 2/24/15, 6:54 AM

Actualy the "document_ftp" module was just extension of module "Document Management System" (technical name: document) that is still present in v8. "document" module can save files in database or in local filesystem depending on configuration. if document_ftp no more available in v8, you may consider to use it's base dependecy, the "document" module and either use as is or extend it to add ftp support (migrating document_ftp to v8.0 may be also solution).

I have tried to do that but got stuck in an error due to netsvc, as the DB cannot be opened using the service. And netsvc is depricated and only supported for workflow in odoo 8.

Akhil P Sivan
on 2/27/15, 3:00 AM

How can I use change DMS to store in file system location?

Akhil P Sivan
on 2/27/15, 3:01 AM

in v7.0 you can specify location for filestore at "Settings/Technical/Parameters/System Parameters" page, by adding record with Key: ir_attachment.location and Value: file:///my/filestore/path this setting will set "my/filestore/path" location under "openerp" folder and all attachment files will go into that location ( as "openerp/my/filestore/path/DatabaseName/...." ), saved files are named with self hash codes, not original filenames, but you can find relation between original name and hashcode name in ir_attachment object. where ir_attachment.datas_fname is the ofiginal filename and ir_attachment.store_fname is indicating it's name in file system, so the file may be found at: "openerp/${path from "ir_attachment.location" setting}/${Database Name}/${ir_attachment.datas_fname}"
in v8.0 there is some changes and 'ir_attachment.location' setting does not works. but I think you can use such workaround as change or override filestore() function in openerp/tools/config.py (that returns path where files should stored) or use "-D" or "--data-dir" command line option of odoo, when runing odoo (as: --data-dir=/full/path/to/data/dir) but it will redirect to the indicated location all data not only filestore for attachments, but filestore will be included...
Note: the filestore location should have write asses for odoo server user in order to save files in.

on 2/27/15, 9:43 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 2/24/15, 6:23 AM
Seen: 3019 times
Last updated: 5/3/16, 3:01 PM