[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 Franco Leyes
parent 5d633916a5
commit 20f18d2920
9 changed files with 92 additions and 0 deletions

View File

@@ -27,3 +27,5 @@ class TestDocumentUrl(common.TransactionCase):
]
attachment_added_count = self.env["ir.attachment"].search_count(domain)
self.assertEqual(attachment_added_count, 1)
attachment = self.env["ir.attachment"].search(domain)
self.assertEqual(attachment.mimetype, "application/link")