2020-09-01 21:57:16 +02:00
|
|
|
Creating a new preview file
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
You need to add the configuration in three places:
|
|
|
|
|
|
|
|
* Function `_checkAttachment` and `_hasPreview` from `mail.DocumentViewer` on
|
|
|
|
Javascript
|
|
|
|
* Qweb template `DocumentViewer.Content`
|
|
|
|
|
2021-03-30 17:13:35 +02:00
|
|
|
To use this module, you need to:
|
|
|
|
|
|
|
|
#. Go to Settings > Technical > Attachments
|
|
|
|
#. Create attachment with image or pdf format
|
|
|
|
#. Show preview icon in "File content"
|
|
|
|
|
2020-09-01 21:57:16 +02:00
|
|
|
As an example, you can check `mail_preview_audio`.
|