Email Brand

mail_brand
REPOSITORY
REPOSITORYOCA/brand
GIT
GIThttps://github.com/OCA/brand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/brand/tree/18.0/mail_brand
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Gert Pellin / Snakebyte Development, bosd
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Gert Pellin / Snakebyte Development, bosd
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, bosd
WEBSITE
WEBSITEhttps://github.com/OCA/brand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:08
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/brand:
    - brand
odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits mail.email_compose_message_wizard_form
mail_notification_light_brand mail_notification_light_brand ir.ui.view qweb Inherits mail.mail_notification_light
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
REPOSITORY
REPOSITORYOCA/brand
GIT
GIThttps://github.com/OCA/brand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/brand/tree/15.0/mail_brand
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Gert Pellin / Snakebyte Development, bosd
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Gert Pellin / Snakebyte Development, bosd
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, bosd
WEBSITE
WEBSITEhttps://github.com/OCA/brand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:30
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/brand:
    - brand
odoo/odoo:
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
email_compose_message_wizard_form_mail_brand mail.compose.message.form.brand mail.compose.message xpath Inherits mail.email_compose_message_wizard_form
mail_notification_borders_brand mail_notification_borders_brand ir.ui.view qweb Inherits mail.mail_notification_borders
mail_notification_light_brand mail_notification_light_brand ir.ui.view qweb Inherits mail.mail_notification_light
mail_notification_paynow_brand mail_notification_paynow_brand ir.ui.view qweb Inherits mail.mail_notification_paynow
message_notification_email_brand message_notification_email_brand ir.ui.view qweb Inherits mail.message_notification_email
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 (0)

No public methods.