Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 11 19
27813
0
thg 3 15
5752
1
thg 9 20
6267
1
thg 7 19
19918
1
thg 3 15
3447