Mandrill mail events integration
mail_mandrill · OCA/social
Health
32/100
poor
-
Security22/251 minor finding
-
Activity0/25Last human commit 124 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 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.84 MB
Module directory on disk
Code analysis
10 migration notes
3 models
6 views
1 HTTP endpoint
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
MailMail— 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_mandrill_event_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 · sourceview_mail_mandrill_event_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_mail_mandrill_message_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 · sourceview_mail_mandrill_message_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 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 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_mail_mandrill_event_form |
mail.mandrill.event.form | mail.mandrill.event | form | New |
view_mail_mandrill_event_search |
mail.mandrill.event.search | mail.mandrill.event | search | New |
view_mail_mandrill_event_tree |
mail.mandrill.event.tree | mail.mandrill.event | tree | New |
view_mail_mandrill_message_form |
mail.mandrill.message.form | mail.mandrill.message | form | New |
view_mail_mandrill_message_search |
mail.mandrill.message.search | mail.mandrill.message | search | New |
view_mail_mandrill_message_tree |
mail.mandrill.message.tree | mail.mandrill.message | tree | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/mandrill/event |
MailController.event |
none | http | ALL |
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
send(self, auto_commit=False, raise_exception=False)@api.multi
New fields (13)
-
dateDatereadonly=Truestring='Mandrill date' -
event_typeSelectionreadonly=Trueselection=[('send', 'Sent'), ('deferral', 'Deferral'), ('hard_bounce', 'Hard bounce'), ('soft_bounce', 'Soft bounce'), ('open', 'Opened'), ('click', 'Clicked'), ('spam', 'Spam'), ('unsub', 'Unsubscribed'), ('reject', 'Rejected')]string='Event type' -
ipCharreadonly=Truestring='User IP' -
message_idMany2one → mail.mandrill.messagecomodel_name='mail.mandrill.message'readonly=Truestring='Message' -
mobileBooleanreadonly=Truestring='Is mobile?' -
os_familyCharreadonly=Truestring='Operating system family' -
timeDatetimereadonly=Truestring='Mandrill time' -
timestampIntegerreadonly=Truestring='Mandrill UTC timestamp' -
ua_familyCharreadonly=Truestring='User agent family' -
ua_typeCharreadonly=Truestring='User agent type' -
urlCharreadonly=Truestring='Clicked URL' -
user_agentCharreadonly=Truestring='User agent' -
user_country_idMany2one → res.countrycomodel_name='res.country'readonly=Truestring='User country'
-
process_click(self, message, event)@api.model -
process_deferral(self, message, event)@api.model -
process_hard_bounce(self, message, event)@api.model -
process_open(self, message, event)@api.model -
process_reject(self, message, event)@api.model -
process_send(self, message, event)@api.model -
process_soft_bounce(self, message, event)@api.model -
process_spam(self, message, event)@api.model -
process_unsub(self, message, event)@api.model
New fields (13)
-
bounce_descriptionCharreadonly=Truestring='Bounce description' -
bounce_typeCharreadonly=Truestring='Bounce type' -
dateDatereadonly=Truestring='Mandrill date' -
event_idsOne2many → mail.mandrill.eventcomodel_name='mail.mandrill.event'inverse_name='message_id'string='Mandrill events' -
mandrill_idCharreadonly=Truerequired=Truestring='Mandrill message ID' -
metadataTextreadonly=Truestring='Metadata' -
nameCharreadonly=Truestring='Subject' -
recipientCharreadonly=Truestring='Recipient email' -
senderCharreadonly=Truestring='Sender email' -
stateSelectionhelp=" * The 'Sent' status indicates that message was succesfully delivered to recipient Mail Exchange (MX) server.\n * The 'Opened' status indicates that message was opened or clicked by recipient.\n * The 'Rejected' status indicates that recipient email address is blacklisted by Mandrill. It is recomended to delete this email address.\n * The 'Spam' status indicates that Mandrill consider this message as spam.\n * The 'Unsubscribed' status indicates that recipient has requested to be unsubscribed from this message.\n * The 'Bounced' status indicates that message was bounced by recipient Mail Exchange (MX) server.\n * The 'Soft bounced' status indicates that message was soft bounced by recipient Mail Exchange (MX) server.\n"index=Truereadonly=Truestring='State' args: [('deferred', 'Deferred'), ('sent', 'Sent'), ('opened', 'Opened'), ('rejected', 'Rejected'), ('spam', 'Spam'), ('unsub', 'Unsubscribed'), ('bounced', 'Bounced'), ('soft-bounced', 'Soft bounced')] -
tagsCharreadonly=Truestring='Tags' -
timeDatetimereadonly=Truestring='Mandrill time' -
timestampIntegerreadonly=Truestring='Mandrill UTC timestamp'
-
process(self, message_id, event_type, event)@api.model