Odoo Help


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.



on 3/31/16, 6:00 AM 294 views

How to upload a file from the form view button click ( not through the attachment option ) and saves the exact format ( .doc / .pdf ) in to a file store/location. Data should not be saved in the database and also should be possible to upload through an object button. Is this possible to achieve ?

I know how the binary files are stored & file store option performs in odoo. But could not achieve the above scenario

What version of Odoo are you using? We've been running it for a while and without needing much modification. What we do is using the attachment system, upload whatever file it is and the system stores the file physically in the filestore with its sha1 hash as its name (most likely to prevent duplicate files from being stored) and stores a row in the database that says where the file is, what type, and its original name with file extension

David Todd
on 3/31/16, 4:26 PM

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

1 follower(s)


Asked: 3/31/16, 6:00 AM
Seen: 294 times
Last updated: 3/31/16, 6:58 AM