跳至内容
菜单
此问题已终结
1 回复
4622 查看

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

形象
丢弃
编写者 最佳答案


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


形象
丢弃
相关帖文 回复 查看 活动
2
5月 25
6410
1
3月 23
3101
0
7月 21
444
1
5月 22
5661
0
12月 21
3145