From a20eb3919d3aa222470617b5faefc0cc7907fe8f Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Fri, 4 Sep 2026 10:13:20 -0400 Subject: [PATCH] [FIX] attachment_preview: fix AttachmentList xpath Odoo 19 removed o-mail-AttachmentCard-aside, so the inheritance cannot resolve and the whole Chatter fails to render on any record with an attachment. Extend the o-mail-AttachmentButtons hover group instead, where the per-attachment actions now live, and match its button styling. Keep both buttons: _onPreviewAttachment reads data-target and treats anything but "new" as split-screen. Also apply the manifest author spacing requested in review. Assisted-by: Claude Opus 5 --- attachment_preview/__manifest__.py | 2 +- .../static/src/xml/attachment_preview.xml | 71 ++++++++++--------- 2 files changed, 39 insertions(+), 34 deletions(-) diff --git a/attachment_preview/__manifest__.py b/attachment_preview/__manifest__.py index ba5b74162d6..a871f4a5da6 100644 --- a/attachment_preview/__manifest__.py +++ b/attachment_preview/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Preview attachments", "version": "19.0.1.0.0", - "author": "Therp BV,Onestein,Odoo Community Association (OCA)", + "author": "Therp BV, Onestein, Odoo Community Association (OCA)", "website": "https://github.com/OCA/knowledge", "license": "AGPL-3", "summary": "Preview attachments supported by Viewer.js", diff --git a/attachment_preview/static/src/xml/attachment_preview.xml b/attachment_preview/static/src/xml/attachment_preview.xml index 06fa74c6445..2285f43ab1c 100644 --- a/attachment_preview/static/src/xml/attachment_preview.xml +++ b/attachment_preview/static/src/xml/attachment_preview.xml @@ -1,40 +1,45 @@ + - -
+ - -
+ + +