Skip to content

Syncing from upstream Vauxoo/addons-vauxoo (19.0)#367

Merged
bt-admin merged 3 commits into
brain-tec:19.0from
Vauxoo:19.0
May 1, 2026
Merged

Syncing from upstream Vauxoo/addons-vauxoo (19.0)#367
bt-admin merged 3 commits into
brain-tec:19.0from
Vauxoo:19.0

Conversation

@bt-admin
Copy link
Copy Markdown

@bt-admin bt-admin commented May 1, 2026

bt_gitbot

This module re-enables channel_ids from the front end when the channels
are mentioned in the messages and then, they are handled to post the
message in the respective channels and an email to the members of the
channels.

The context 'mentioned_channel_ids' is created to handle the channels in
the inheritances.

channel_ids functionality was removed on:
- odoo/odoo@e5338146
- odoo/odoo@59d6bb23
- mail.channel was renamed to discuss.channel [1].
- message_post_with_view was replaced by
  message_post_with_source [2].
- Parameter whitelisting moved from controllers to
  models, so the controller override is no longer needed
  and can be replaced by _get_allowed_message_params on
  mail.thread [3][4].
- @api.returns was removed from the ORM, so the
  decorator on message_post must be dropped [5].
- OWL model layer was replaced by a store-based
  architecture, so the ComposerView.registerPatch
  must be replaced by a Store.getMessagePostParams
  patch [6].
- URL routing changed from /web#id=...&model=... to
  /odoo/model/id.
- Normalize pids to set() in _get_recipient_data because
  native callers may pass a list, causing TypeError on
  set union operations.
- Move channel reposting from message_post body to
  _message_post_after_hook to decouple it from the
  message creation flow and follow the standard Odoo
  extension pattern for post-processing.
- Replace demo data dependency (env.ref) with
  programmatic record creation in tests as demo data is
  no longer installed by default.
- Use mail_create_nolog context when creating users in
  tests to avoid unnecessary logging.

[1]: odoo/odoo@90cb44e1e1b
[2]: odoo/odoo@4775bd93a2b
[3]: odoo/odoo@e1e32870a30
[4]: odoo/odoo@bf759408dd6
[5]: odoo/odoo@76967686cc0
[6]: odoo/odoo@20c1772d351
@bt-admin bt-admin added the 19.0 label May 1, 2026
@bt-admin bt-admin merged commit ebd935f into brain-tec:19.0 May 1, 2026
2 of 3 checks passed
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.

2 participants