Repository
OCA/brand · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/brand
Last tracking update
2026-08-07 08:43:05
Authors
Odoo Community Association (OCA), bosd, Gert Pellin / Snakebyte Development
Maintainers
Odoo Community Association (OCA), bosd, Gert Pellin / Snakebyte Development
Committers
Weblate, OCA-git-bot, oca-ci, bosd
Odoo dependencies
OCA/brand:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
(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)

New fields (0)

No new fields.

Public methods (1)
  • get_base_url(self)

New fields (1)
  • brand_id Many2one → res.brand
    comodel_name='res.brand' string='Brand'
Public methods (2)
  • action_send_mail(self)
    Override to explicitly pass the brand_id in the context.
  • default_get(self, fields)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • logo_web Binary
    attachment=False compute='_compute_logo_web' store=True
Public methods (1)
  • write(self, vals)
    @api.model

Loading…