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

In the document app you can create a record from a pdf but how to link a pdf to an existing record ? 

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


Start by authorized “can create” with studio in the list view of documents to display the “import” button.


Get the model and the id of the record that you want to link (here an example with helpdesk ticket)



You need to know that a document can be linked to any record in any model, so there are 2 fields that are giving that information : res_model and res_id. Export those fields with the external ID of your document 

You will have this 

Complete with id and model of your record

Then import and you will have the link between those two


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 25
6419
1
thg 3 23
3106
0
thg 7 21
444
1
thg 5 22
5683
0
thg 12 21
3150