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

I have a field in my model that is
file_ids = fields.Many2many(comodel_name='ir.attachment',string="Files")

Whenever I attach a file it does not save into the database structure, why is that? 
What can I do so that when I attach a file it goes into the database structure attachments ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

By default, attachments are stored outside the database, as binary files on the server(filestore folder).

it can be configured to stored either in the database or in the filestore,
you can check this by going to settings -->configuration -->Technical -->Parameters -->system parameters.
looking for ir_attachment.location value.

as discussed at https://www.odoo.com/forum/help-1/where-are-attachments-stored-in-odoo-v15-195396

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 22
1604
3
thg 6 23
12679
0
thg 3 22
2236
0
thg 6 20
5754
0
thg 2 19
3112