Skip to content

[19.0][FIX] attachment_preview: extend AttachmentButtons, not the removed aside - #14

Open
dnplkndll wants to merge 1 commit into
19.0-mig-attachment_previewfrom
19.0-fix-attachment_preview-attachmentlist-xpath
Open

[19.0][FIX] attachment_preview: extend AttachmentButtons, not the removed aside#14
dnplkndll wants to merge 1 commit into
19.0-mig-attachment_previewfrom
19.0-fix-attachment_preview-attachmentlist-xpath

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Sep 4, 2026

Copy link
Copy Markdown

Fix for OCA#588. Based on 19.0-mig-attachment_preview (pinned at 091d58a0, that PR's head) so the diff is only the fix.

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. This extends o-mail-AttachmentButtons instead, where the per-attachment actions now live.

Both buttons are kept — _onPreviewAttachment reads data-target and treats anything but "new" as split-screen. Also applies the manifest author spacing requested in review on OCA#588.

Note that OCA#588's checks are green: the failure is a client-side OWL error, so the server-side tests cannot catch it. Reproduce by installing the module and opening any record with an attachment.

Preview stays desktop-only, as o-mail-AttachmentButtons is !isMobileOS — same as Download and Remove.

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
@dnplkndll
dnplkndll force-pushed the 19.0-fix-attachment_preview-attachmentlist-xpath branch from 1421e57 to a20eb39 Compare September 4, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant