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

Hello everybody, I have a little problem, I was searching the folder where are the attachments saved in Odoo, I found the path inside "/home/odoo/.local/share/Odoo/filestore/database_name" , I need pass the path of the attachments in my module to a external database but I don't know if is possible find this path inside Odoo, anyone could help me? Thanks!!


And it's possible change the format of the attachments? I see all of them with name "0a..." etc.. and without file extension and I can't open it outside Odoo


Thanks!!

อวตาร
ละทิ้ง

@Jorge did you find the solution of getting file with exact extension

how to get exact file without encryption ?

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

You can simply do:

attachment._full_path(attachment.store_fname)

which will return the full path of the attachment.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 21
4089
5
มิ.ย. 21
23886
2
มี.ค. 22
9820
1
พ.ค. 21
14544
Get all data from a model แก้ไขแล้ว
1
ธ.ค. 19
11369