[IMP] document_url: Visual and functional improvements in UI.

Define the add attachment and add URL buttons on the same line.
Allow downloading of url type attachments by clicking on the icon or the name.
Define the name of the url type attachments as links (allows to open it in a new tab).
Hide the download button for url attachments.
Force to set mimetype to "application/link" for url attachments.
Displays a link icon for url attachments.
TT30263
This commit is contained in:
Víctor Martínez
2021-10-13 17:27:50 +02:00
committed by matiasperalta1
parent d3a0478975
commit cdb6da051e
9 changed files with 92 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
>
<xpath expr="." position="inside">
<script type="text/javascript" src="/document_url/static/src/js/url.js" />
<link
href="/document_url/static/src/scss/document_url.scss"
rel="stylesheet"
/>
</xpath>
</template>
<record model="ir.actions.act_window" id='action_ir_attachment_add_url'>