Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
11207 มุมมอง

By default all the files/documents attached gets stored in database..

However I remember in Version 7 or so, there was an option to set Attachment location in System Parameter, such that all attached files/docs gets stored into the filestore folders. 

Now in Odoo 11, am unable to find the same option, is this feature has been changed or no longer available? Please advise

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Found the solution,

Need to set 'attachment=True'  on the field, that way all the uploaded files irrespective of Object, goes to Attachment Object, which in turn stores into filestore (locally).


อวตาร
ละทิ้ง

So, attachment=True stores data to file system? For me it didn't works. I need file to be saved to filestore locally and the path should be saved to db. Is there any option like that in odoo 10 & 11?

คำตอบที่ดีที่สุด

Hi,

Can you check in the following menu

Settings->Technical Settings->Database structure->Attachments

Hope it helps

อวตาร
ละทิ้ง
ผู้เขียน

No am not asking the database storage location, am asking about redirecting or instruct the Odoo to store my files in External System rather than my database

ผู้เขียน

Like for instance, I add a file, instead of converting & getting saved to database (in attachment table) I would like to store it some folder (local-machine) -- that way my database doesn't become heavier over a period of usage.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ธ.ค. 22
4749
2
พ.ย. 21
7921
Adding an attachment from python แก้ไขแล้ว
1
เม.ย. 20
7173
2
ก.พ. 20
8066
2
ม.ค. 20
5174