Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
We're working on a relatively e-commerce big project and meanwhile the gzipped dump has already grown beyond 450M. I also suspect that things are a bit slow because of all the images stored in the database. How can we move them to the file system? Is there a module for that? If not, how can I start writing one?
One line: we want to store your files in a filestore in place of in the postgreSQL database that Odoo uses.
if I understand this correctly you want to store your files in a filestore in place of in the postgreSQL database that Odoo uses?
If you setup ir_attachment.location (settings > Technical > Parameters > System parameters) to file:///filestore you should have a new filestore folder that has the name of the database you setup in youropenobject-server/openerp/filestore folder.
The parameter would look like this:
- If your database is demo_test you will haveopenobject-server/openerp/filestore/demo_test folder.
Note: OpenERP server should be able to write on this directory: openobject-server/openerp/ . Setup write acces (sudo chmod 755 on Ubuntu) and user used to launch OpenERP server service correctly.
The filestore folder should be in the same level as service, tools, osv, cli, conf etc .. in the openerp folder of the server (not web or addons)
If the filestore does not exist, create it and give the write access to openerp (sudo chmod 755 on Ubuntu). When you launch OpenERP you should have a warning or an error if OpenERP can't create folder.
The 'filestore' directory will not be created until the first document is attached within OpenERP
And more information can be found here: https://www.odoo.com/forum/help-1/question/where-are-document-attachments-stored-529
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/18/14, 8:52 AM|
|Seen: 2184 times|
|Last updated: 3/16/15, 8:10 AM|