Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 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 0 migration notes 4 models 2 views 2 HTTP endpoints

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
OCA/brand:
odoo/odoo:
- web
- bus
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 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…