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.

2

document_ftp for odoo 8

By
Akhil P Sivan
on 2/24/15, 6:23 AM 2,251 views

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

0

You can try document_fs

 https://github.com/odoo/odoo-extra/tree/master/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.

0

Temur

--Temur--
2896
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
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.

Temur
on 2/27/15, 9:43 AM

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: 2/24/15, 6:23 AM
Seen: 2251 times
Last updated: 5/3/16, 3:01 PM