CMS notification
cms_notification · OCA/website-cms
-
Security10/251 grave, 1 minor
-
Activity0/25Last human commit 95 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Security warnings
portal_users_can_write_users— ACL grants write on security model 'base.model_res_users' to group 'base.group_portal'. Review field restrictions and Python guards for possible privilege escalation; the ACL alone does not prove exploitability. CWE-269. acl-privilege-escalation · source
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
License review
- cms_notification (LGPL-3) depends on mail_digest (AGPL-3): combined with its dependencies it must be distributed under AGPL-3, including offering the source to users of a hosted instance. LICENSE_EFFECTIVE_UPGRADE
Based on the manifest licenses of this module and everything it depends on: a heuristic to spot problems early, not legal advice. Methodology
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. (2 methods) migration-api-multi-one · sourceResUsers— 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 · sourcefield_widget_notification_selection— Migrating to 15.0: QWeb `t-raw` is deprecated: use `t-out`; for intended HTML, sanitize it at its source, since `Markup` alone does not sanitize. migration-view-t-raw · 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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_frontend |
CMS notification frontend assets | ir.ui.view | qweb | Inherits website.assets_frontend |
field_widget_notification_selection |
CMS notification selection widget | ir.ui.view | qweb | Inherits cms_form.field_widget_radio_selection |
listing |
CMS notification listing | ir.ui.view | qweb | New |
mail_message_subtype_form |
mail_digest mail.message.subtype.form | mail.message.subtype | form | Inherits mail.view_mail_message_subtype_form |
message_subtype_tree |
mail_digest mail.message.subtype.tree | mail.message.subtype | tree | Inherits mail.view_message_subtype_tree |
notify_email_help_email |
CMS notification form - notify_email help `Email` | ir.ui.view | qweb | New |
notify_email_help_inbox |
CMS notification form - notify_email help `Inbox` | ir.ui.view | qweb | New |
user_menu |
CMS notification user menu | ir.ui.view | qweb | Inherits website.layout |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/my/notifications |
MyNotificationsController.cms_form |
user | http | ALL | website |
/my/settings/notifications |
PanelFormController.cms_form |
user | http | ALL | website |
Models touched 6
No new fields.
Public methods (1)-
w_option_items(self)@propertyChange options order and inject help text.
No new fields.
Public methods (4)-
check_view_permission(self, item)Check read permission on given item. We could list messages that are attached to other records. If the permissions for this records has changed then the user viewing the notification may not have permissions to read it anymore. -
form_description(self)@property -
form_search_domain(self, search_values) -
form_title(self)@property
No new fields.
Public methods (7)-
form_after_create_or_update(self, values, extra_values)Update subtype configuration for `_form_subtype_fields`. -
form_description(self)@property -
form_get_loader(self, fname, field, main_object=None, value=None, **req_values)Override to provide automatic loader for boolean fields. -
form_msg_success_updated(self)@property -
form_next_url(self, main_object=None) -
form_title(self)@property -
form_widgets(self)@property
-
ref_item_idReferencecompute='_compute_ref_item_id'readonly=Trueselection='_selection_ref_item_id'string='Referenced item' -
ref_model_idMany2one → ir.modelcomodel_name='ir.model'compute='_compute_ref_model_id'string='Referenced model'
-
is_read(self, partner=None) -
is_unread(self, partner=None)
-
cms_typeBooleanhelp="If active, this message subtype will be visible in users' notifications control panel." args: 'Visible in CMS control panel'
No public methods.
-
has_unread_notifBooleancompute='_compute_has_unread_notif'readonly=Truestring='Has unread notif'
No public methods.
Loading…