Skip to content

[20.0][MIG] document_url: Migration to version 20.0 - #668

Open
adasatorres-tecnativa wants to merge 47 commits into
OCA:20.0from
Tecnativa:20.0-mig-document_url
Open

adasatorres-tecnativa wants to merge 47 commits into
OCA:20.0from
Tecnativa:20.0-mig-document_url

Conversation

@adasatorres-tecnativa

Copy link
Copy Markdown

@Tecnativa TT65747

pedrobaeza and others added 3 commits November 12, 2026 14:09
[MIG] document_url

* bump version to 9.0.1.0.0 and make it installable
* Update JS structure
* Add css in order to be compliant with odoo style
* Add a README.rst and OCA conventions
* Improve selector
* add fr.po for fr translation
* open link with target='_blank'
@oca-cla-bot

oca-cla-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

pedrobaeza and others added 24 commits November 12, 2026 17:13
Without this patch, when you hover on the menu item, its background color does not change, and its cursor is a text one.

With this patch, the menu item styling matches those available in all surrounding menus.
Replace char © by word Copyright
Change format in usage description
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-12.0/knowledge-12.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-12-0/knowledge-12-0-document_url/hr/
[MIG] document_url: Migration to 14.0
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
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/it/
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/it/
Other modules like web_pwa_oca uses url field for storing an indexed
path for later being searched in the controller, so let's restrict the
mimetype change if both url and type=url is set.
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/it/
Currently translated at 92.8% (13 of 14 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/sl/
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/it/
Currently translated at 100.0% (14 of 14 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/es/
mymage and others added 20 commits November 12, 2026 17:13
Currently translated at 100.0% (17 of 17 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/it/
Currently translated at 100.0% (17 of 17 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/es/
Currently translated at 100.0% (17 of 17 strings)

Translation: knowledge-16.0/knowledge-16.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-16-0/knowledge-16-0-document_url/pt/
Currently translated at 100.0% (17 of 17 strings)

Translation: knowledge-17.0/knowledge-17.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_url/sv/
Currently translated at 100.0% (17 of 17 strings)

Translation: knowledge-17.0/knowledge-17.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_url/ca/
Fix download atachment widget.

Document_url when activated causes error when opening attachment link on the chatter window
This commit (odoo/odoo@366676c) move download buttons into a sub-component.
I modified the module behavior to use canDownload() method instead of adding a t-if in the view and prevent the chatter component from breaking when the message has attachments.
- In a first step, instead of replacing a node content with its verbatim copy, we uses the xpath "replace" command with "$0" magic keyword to move all the <t> content into a <div>.
- In a second step, the "Add URL" button is added after the existing "Attach files"button.
Currently translated at 76.4% (13 of 17 strings)

Translation: knowledge-19.0/knowledge-19.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_url/sl/
Currently translated at 100.0% (17 of 17 strings)

Translation: knowledge-19.0/knowledge-19.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_url/sl/
Currently translated at 58.8% (10 of 17 strings)

Translation: knowledge-19.0/knowledge-19.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_url/pl/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.