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

Does anyone know if it's possible to remove the link from a document to a Product in the Documents module but keep the document in Documents?

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks!

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

Hi,

The fields Resource Model and Resource ID in model ir.attchment is what links the attachment to the corresponding record. So you just need to remove data from those fields in order to remove the link between the record and attachment, but keep the attachment in the database.

You can access the ir.attachment model from Technical -> Attachments, after enabling debug mode.

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 21
9226
2
thg 5 25
1350
2
thg 1 24
2886
0
thg 11 23
1645
0
thg 9 23
1420