SendGrid
mail_sendgrid · OCA/social
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 50 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
7 migration notes
10 models
8 views
1 HTTP endpoint
Migration considerations
EmailComposeMessage— 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 · sourceEmailTemplate— 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 · sourceEmailTemplatePreview— 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 · sourceMailMessage— 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) (2 occurrences in this file) migration-api-multi-one · sourceemail_form_view— 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_sendgrid_substitution_line_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_sendgrid_template_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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 |
|---|---|---|---|---|
email_compose_message_sendgrid_form |
mail.compose.sendgrid.form | mail.compose.message | form | Inherits mail.email_compose_message_wizard_form |
email_form_view |
mail.mail.sendgrid | mail.mail | form | Inherits mail.view_mail_form |
sendgrid_email_search_view |
mail.mail.sendgrid.search | mail.mail | search | Inherits mail.view_mail_search |
sendgrid_email_tree_view |
mail.mail.sendgrid.tree | mail.mail | tree | Inherits mail.view_mail_tree |
view_email_template_sendgrid_form |
sendgrid.sendgrid.form | mail.template | form | Inherits mail.email_template_form |
view_sendgrid_substitution_line_tree |
sendgrid.substitution.tree | sendgrid.substitution | tree | New |
view_sendgrid_template_form |
sendgrid.template.form | sendgrid.template | form | New |
view_sendgrid_template_tree |
sendgrid.template.tree | sendgrid.template | tree | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/mail/tracking/sendgrid/<string:db> |
SendgridTrackingController.mail_tracking_sendgrid |
none | json | ALL | csrf off |
Models touched 10
New fields (0)
No new fields.
Public methods (1)-
on_change_res_id(self)@api.onchange('res_id')@api.multi
New fields (1)
-
body_sendgridHtmlcompute='_compute_sendgrid_view'
-
get_mail_values(self, res_ids)@api.multiAttach sendgrid template to e-mail and render substitutions
New fields (4)
-
click_countIntegercompute='_compute_tracking'readonly=Truestore=True -
openedBooleancompute='_compute_tracking'readonly=Truestore=True -
tracking_email_idsOne2many → mail.tracking.emailreadonly=Truestring='Registered events' args: 'mail.tracking.email', 'mail_id' -
tracking_event_idsOne2many → mail.tracking.eventcompute='_compute_events' args: 'mail.tracking.event'
-
send(self, auto_commit=False, raise_exception=False)@api.multiOverride send to select the method to send the e-mail. -
send_sendgrid(self)@api.multiUse sendgrid transactional e-mails : e-mails are sent one by one.
New fields (5)
-
body_textTexthelp='Text only version of the body' -
send_methodCharcompute='_compute_send_method' -
sendgrid_template_idMany2one → sendgrid.templateargs: 'sendgrid.template', 'Sendgrid Template' -
sent_dateDatetimecopy=False -
substitution_idsMany2many → sendgrid.substitutioncopy=Truestring='Substitutions' args: 'sendgrid.substitution'
No public methods.
New fields (3)
-
sendgrid_localized_templateMany2one → sendgrid.templatecompute='_compute_localized_template' args: 'sendgrid.template' -
sendgrid_template_idsOne2many → sendgrid.email.lang.templateargs: 'sendgrid.email.lang.template', 'email_template_id', 'Sendgrid Templates' -
substitution_idsOne2many → sendgrid.substitutionargs: 'sendgrid.substitution', 'email_template_id', 'Substitutions'
-
render_substitutions(self, res_ids)@api.multi:param res_ids: resource ids for rendering the template Returns values for substitutions in a mail.message creation :return: Values for mail creation (for each resource id given) {res_id: list of substitutions values [0, 0 {substitution_vals}]} -
update_substitutions(self)@api.multi
New fields (1)
-
click_countIntegercompute='_compute_clicks'readonly=Truestore=True
-
event_process(self, request, post, metadata, event_type=None)@api.model
New fields (0)
No new fields.
Public methods (1)-
process_sent(self, tracking_email, metadata)@api.model
New fields (3)
-
email_template_idMany2one → mail.templateargs: 'mail.template', 'E-mail Template' -
langSelectionrequired=True args: '_select_lang', 'Language' -
sendgrid_template_idMany2one → sendgrid.templaterequired=True args: 'sendgrid.template', 'Sendgrid Template'
No public methods.
New fields (5)
-
email_idMany2one → mail.mailindex=Trueondelete='cascade' args: 'mail.mail' -
email_template_idMany2one → mail.templateindex=Trueondelete='cascade' args: 'mail.template' -
keyChar -
langChar -
valueChar
No public methods.
New fields (5)
-
detected_keywordsCharcompute='_compute_keywords' -
html_contentHtmlreadonly=True -
nameChar -
plain_contentTextreadonly=True -
remote_idCharreadonly=True
-
get_keywords(self)Search in the Sendgrid template for keywords included with the following syntax: {keyword_name} and returns the list of keywords. keyword_name shouldn't be longer than 50 characters and not contain whitespaces. You can replace the substitution prefix and suffix by adding values in the system parameters - mail_sendgrid.substitution_prefix - mail_sendgrid.substitution_suffix -
update_templates(self)@api.model