[18.0][FIX] ai_oca_bridge_chatter: post AI replies as Discuss comments - #112
Open
marcelsavegnago wants to merge 1 commit into
Open
[18.0][FIX] ai_oca_bridge_chatter: post AI replies as Discuss comments#112marcelsavegnago wants to merge 1 commit into
marcelsavegnago wants to merge 1 commit into
Conversation
marcelsavegnago
marked this pull request as ready for review
September 2, 2026 00:13
Member
Author
|
ping @etobella |
etobella
reviewed
Sep 9, 2026
| response["author_id"] = self.chatter_user_id.partner_id.id | ||
| response["message_type"] = "comment" | ||
| body = response.get("body") or "" | ||
| body_is_html = bool(response.pop("body_is_html", False)) |
Member
There was a problem hiding this comment.
This might break previous installations....
I mean, imagine I was responding with HTML 🤔
Discuss only draws chat bubbles for mail.mt_comment. Bridge replies defaulted to mail.mt_note, so AI messages rendered as plain text. Existing installations already return HTML; posting that as a str escapes it and the Html field wraps it again. Convert HTML to Markup and keep mail.mt_comment.
marcelsavegnago
force-pushed
the
18.0-imp-ai_oca_bridge_chatter
branch
from
September 9, 2026 21:31
f539a0a to
a0c2f60
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discuss only draws chat bubbles for mail.mt_comment. Bridge replies defaulted to mail.mt_note, so AI messages rendered as plain text while manually typed bot messages appeared in bubbles.