Email Brand
mail_brand · OCA/brand
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module enhances Odoo's email communication with branding capabilities.
Key Features:
-
Comprehensive Email Branding: Automatically applies branding to outgoing emails. This includes:
- Displaying the correct brand logo, derived from the linked partner's image.
- Setting the sender's company details (website, address, phone number) according to the selected brand's information.
-
Website Contextualization: Dynamically adjusts the base URL for links within emails to reflect the website associated with a selected brand.
-
Brand Selection in Email compose wizard: Extends the standard "Compose Email" wizard with a 'Brand' selection field. This allows users to explicitly apply a brand to outgoing emails, particularly useful when the originating record isn't directly linked to a brand.
-
Dynamic Logo Delivery: Includes a custom controller to serve the appropriate brand logo in emails based on the selected brand context.
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 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_compose_message_wizard_form_mail_brand |
mail.compose.message.form.brand | mail.compose.message | form | Inherits mail.email_compose_message_wizard_form |
mail_notification_light_brand |
mail_notification_light_brand | ir.ui.view | qweb | Inherits mail.mail_notification_light |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | BrandBinary.company_logo |
inherited | http | ALL | |
/web/binary/company_logo, /logo, /logo.png |
BrandBinary.company_logo |
none | http | ALL |
Models touched 4
No new fields.
Public methods (1)-
get_base_url(self)
-
brand_idMany2one → res.brandcomodel_name='res.brand'string='Brand'
-
action_send_mail(self)Override to explicitly pass the brand_id in the context. -
default_get(self, fields)@api.model
No new fields.
Public methods (0)No public methods.
-
logo_webBinaryattachment=Falsecompute='_compute_logo_web'store=True
-
write(self, vals)@api.model
Loading…