Skip to content

[fork-CI] [19.0][MIG] web_send_message_popup: Migration to 19.0 - #7

Draft
dnplkndll wants to merge 27 commits into
19.0from
19.0-mig-web_send_message_popup
Draft

[fork-CI] [19.0][MIG] web_send_message_popup: Migration to 19.0#7
dnplkndll wants to merge 27 commits into
19.0from
19.0-mig-web_send_message_popup

Conversation

@dnplkndll

Copy link
Copy Markdown

@dnplkndll
dnplkndll force-pushed the 19.0-mig-web_send_message_popup branch 7 times, most recently from 414efab to db27a98 Compare June 13, 2026 17:21
guewen and others added 23 commits June 13, 2026 13:53
…to open directly the full featured message popup
* Intitial manifest changes

* [FIX] small README tricks
Currently translated at 100.0% (1 of 1 strings)

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

Translation: web-18.0/web-18.0-web_send_message_popup
Translate-URL: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_send_message_popup/sl/
@dnplkndll
dnplkndll force-pushed the 19.0-mig-web_send_message_popup branch 4 times, most recently from 286ae0f to 51e1d67 Compare June 13, 2026 18:44
@dnplkndll
dnplkndll force-pushed the 19.0-mig-web_send_message_popup branch from 51e1d67 to defae2b Compare August 22, 2026 00:37
Core reimplements Chatter.toggleComposer in mail/chatter/web/chatter_patch.js
without calling super, so the last patch applied wins outright. Importing that
file for its side effect is what puts this module's override outermost; without
it the patch is silently inert and "Send message" opens the inline composer.

Realigned with 19.0 core:

- toggleComposer: the "message" branch now awaits updateRecipients (new in
  19.0; refreshes suggestedRecipients from unsaved partner/email form edits)
  before opening the wizard, and defers through onThreadCreated when the
  record is unsaved instead of opening against a thread without an id,
  mirroring core's toggle structure.
- context: added clicked_on_full_composer (the wizard otherwise hides the
  followers-only recipients widget and makes the forward-style one required),
  is_thread_composer and body_contains_signature_only; dropped
  mail_post_autofollow, which core removed deliberately in 18.2+.
- default_partner_ids: restored core's filter on partner_id.
- onCloseFullComposerCallback now receives isDiscard. It gained the argument in
  19.0, and reloadParentView() starts with saveRecord(), so discarding a message
  was silently saving the underlying form record.
- formatDefaultBodyForFullComposer: createDocumentFragmentFromContent, the BR
  before the signature, and markup() on return, per core's composer_patch.
- onClose clears replyToMessage, as core does, so a reply context does not leak
  into the next inline composer.
- notifySendFromMailbox delegates to the store method core exposes rather than
  duplicating it and its translatable string.

ROADMAP records that Composer.fullComposerAdditionalContext is not consulted:
the action is built from the chatter, not a rendered composer.

Assisted-by: Claude Opus 5
Assisted-by: Claude Fable 5
Drives the "Send message" button rather than calling openFullComposer()
directly, so the patched toggleComposer is actually exercised. The previous
shape reached the module by a path no user takes and passed while the module
was inert.

Also gates the two paths that had no coverage: that "Log note" still falls
through to core's inline composer, and that isDiscard decides whether the
parent record is reloaded. Both verified by mutation — reverting either fix
fails exactly its own test.

Assisted-by: Claude Opus 5
@dnplkndll
dnplkndll force-pushed the 19.0-mig-web_send_message_popup branch from defae2b to 98f8c59 Compare August 24, 2026 15:37
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.