تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
12630 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 21
4088
5
يونيو 21
23883
2
مارس 22
9818
1
مايو 21
14538
1
ديسمبر 19
11369