Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 14.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.06 MB
Module directory on disk
Code analysis 0 migration notes 5 models 4 views 0 HTTP endpoints

Description

Odoo will add a default email layout on most commercial communications.

The email layout is a QWeb view that ends up wrapping the message body when sending an email. It usually displays the related document reference, the company logo, and a small footer saying "Powered by Odoo".

There are notably three main layouts used in Odoo, and the user can't control when they're used, as it's hardcoded into the different applications.

  • mail.mail_notification_layout
  • mail.mail_notification_layout_with_responsible_signature
  • mail.mail_notification_light

This module allows to force a specific layout for a given email.template, effectively overwriting the one hardcoded by Odoo. Additionally, it enables forcing a custom layout for emails that do not use an existing email.template record (e.g., when sending an email from the chatter).

This allows you to fully customize the way Odoo emails are rendered and sent to your customers.

Dependencies

Odoo dependencies
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 4

XML IDNameModelTypeStatus
email_template_form mail.template form Inherits mail.email_template_form
mail_layout_custom mail_layout_custom ir.ui.view qweb New
mail_layout_noop Mail: No-Layout notification template ir.ui.view qweb New
view_ir_ui_view_form_inherit ir.ui.view.form.inherit ir.ui.view form Inherits base.view_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (3)
  • layout_id Many2one → ir.ui.view
    ondelete='cascade' args: 'ir.ui.view'
  • model_ids Many2many → ir.model
    help='Select models that the swapping applies to.' string='Models' args: 'ir.model'
  • substitute_layout_id Many2one → ir.ui.view
    domain=[('type', '=', 'qweb')] help='Select a target layout.' required=True args: 'ir.ui.view'
Public methods (0)

No public methods.

New fields (1)
  • layout_mapping_line_ids One2many → email.layout.mapping
    args: 'email.layout.mapping', 'layout_id'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (1)
  • force_email_layout_id Many2one → ir.ui.view
    comodel_name='ir.ui.view' compute='_compute_force_email_layout_id' domain=[('type', '=', 'qweb'), ('mode', '=', 'primary')] help='Force a mail layout for this template.' inverse='_inverse_force_email_layout_id' string='Force Layout'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…