Custom notification settings for followers
mail_follower_custom_notification · OCA/social
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 51 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.64 MB
Module directory on disk
Code analysis
6 migration notes
6 models
3 views
1 HTTP endpoint
Migration considerations
MailMessage— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceMailSubtypeAssignCustomNotifications— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceMailThread— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceResPartner— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceview_mail_message_subtype_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
mail_follower_custom_notification assets | ir.ui.view | qweb | Inherits web.assets_backend |
view_mail_message_subtype_form |
mail.message.subtype | form | Inherits mail.view_mail_message_subtype_form | |
view_mail_subtype_assign_custom_notifications |
mail.subtype.assign.custom.notifications | form | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | MailController.read_subscription_data |
inherited | http | ALL |
Models touched 6
New fields (3)
-
force_mail_subtype_idsMany2many → mail.message.subtypestring='Force mails from subtype' args: 'mail.message.subtype', 'mail_followers_force_mail_rel', 'mail_followers_id', 'mail_message_subtype_id' -
force_nomail_subtype_idsMany2many → mail.message.subtypestring='Force no mails from subtype' args: 'mail.message.subtype', 'mail_followers_force_nomail_rel', 'mail_followers_id', 'mail_message_subtype_id' -
force_own_subtype_idsMany2many → mail.message.subtypestring='Force own mails from subtype' args: 'mail.message.subtype', 'mail_followers_force_own_rel', 'mail_followers_id', 'mail_message_subtype_id'
-
create(self, values)@api.model
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
custom_notification_mailSelectionhelp='Leave empty to use the setting on the partner\'s form, set to "Force yes" to always send messages of this type via email, and "Force no" to never send messages of type via email'string='Send mail notification' args: [('force_yes', 'Force yes'), ('force_no', 'Force no')] -
custom_notification_model_idsMany2many → ir.modeldomain=[('transient', '=', False)]help="Choose for which models the custom configuration applies. This is only necessary if your subtype doesn't set a model itself"string='Models' args: 'ir.model' -
custom_notification_ownBooleanhelp='Check this to have notifications generated and sent via email about own messages' args: 'Notify about own messages'
No public methods.
New fields (1)
-
subtype_idsMany2many → mail.message.subtypedefault=<expr>required=Truestring='Subtypes' args: 'mail.message.subtype', 'mail_subtype_assign_custom_notifications_rel'
-
button_apply(self)@api.multi
New fields (0)
No new fields.
Public methods (2)-
message_custom_notification_update(self, custom_notifications)@api.multicustom_notifications is a dictionary with partner ids as keys and dictionaries mapping message subtype ids to custom notification values -
message_custom_notification_update_user(self, custom_notifications)@api.multichange custom_notifications from user ids to partner ids
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…