Syncing from upstream Vauxoo/addons-vauxoo (19.0)#367
Merged
Conversation
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
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.
bt_gitbot