TIP: You can type at any time to perform a new search.
SendGrid
mail_sendgrid · OCA/social
- Repository
- OCA/social · module folder · Try on Runboat
- Module version
- 1.0.3
- Category
- Social Network
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/social
- Last tracking update
- 2026-08-07 07:17:49
- Authors
- Odoo Community Association (OCA), Compassion CH
- Maintainers
- Odoo Community Association (OCA), Compassion CH
- Committers
- Ronald Portier, Holger Brunn, Pedro M. Baeza, GitHub, Thierry Ducrest, Emanuel Cino, OCA-git-bot, oca-travis
Code Analysis ⓘ
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