Skip to content

Syncing from upstream OCA/knowledge (19.0)#659

Merged
bt-admin merged 74 commits intobrain-tec:19.0from
OCA:19.0
Jan 13, 2026
Merged

Syncing from upstream OCA/knowledge (19.0)#659
bt-admin merged 74 commits intobrain-tec:19.0from
OCA:19.0

Conversation

@bt-admin
Copy link

bt_gitbot

pedrobaeza and others added 30 commits December 30, 2025 10:07
[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'
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
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
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/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: knowledge-13.0/knowledge-13.0-document_url
Translate-URL: https://translation.odoo-community.org/projects/knowledge-13-0/knowledge-13-0-document_url/
[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
weblate and others added 27 commits December 30, 2025 10:07
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
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.
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 19.0 label Jan 13, 2026
@bt-admin bt-admin merged commit e64ae4d into brain-tec:19.0 Jan 13, 2026
4 checks passed
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 92.15686% with 4 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (19.0@d4b2ba7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
document_url/wizard/document_url.py 78.94% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             19.0     #659   +/-   ##
=======================================
  Coverage        ?   92.15%           
=======================================
  Files           ?        7           
  Lines           ?       51           
  Branches        ?        5           
=======================================
  Hits            ?       47           
  Misses          ?        2           
  Partials        ?        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.