Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
12636 Lượt xem

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!!

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

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

how to get exact file without encryption ?

Câu trả lời hay nhất

You can simply do:

attachment._full_path(attachment.store_fname)

which will return the full path of the attachment.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 21
4089
5
thg 6 21
23886
2
thg 3 22
9820
1
thg 5 21
14544
1
thg 12 19
11369