[19.0][MIG] mute_notification_user_autosubscribe: Migration to 19.0#1838
Open
pablo-cort-s73 wants to merge 4 commits intoOCA:19.0from
Open
[19.0][MIG] mute_notification_user_autosubscribe: Migration to 19.0#1838pablo-cort-s73 wants to merge 4 commits intoOCA:19.0from
pablo-cort-s73 wants to merge 4 commits intoOCA:19.0from
Conversation
…o users autosubscribed through user_id field
Currently translated at 100.0% (18 of 18 strings) Translation: social-17.0/social-17.0-mute_notification_user_autosubscribe Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mute_notification_user_autosubscribe/it/
5 tasks
c10e7c3 to
32450f8
Compare
32450f8 to
8bfc96a
Compare
sbiosca-s73
approved these changes
Mar 26, 2026
Contributor
|
This PR has the |
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.
PR Description - [MIG] mute_notification_user_autosubscribe: Migration to 19.0
Summary
Migration of the
mute_notification_user_autosubscribemodule to Odoo 19.0.Technical Changes
res.users(Model)user_has_groups()method withhas_groups().odoo.fields.Domainwrapper.user.autosubscribe.mute(Model)_get_user_models_domainmethod to construct and return anodoo.fields.Domainobject instead of an evaluated f-string.model_idfield domain definition to use a lambda function:domain=lambda self: self._get_user_models_domain._sql_constraintslist with the newmodels.Constraintimplementation forunique_model_id.Views (
user_autosubscribe_mute_views.xml)<tree>root node with<list>in the view architecture.