Mail Layout Force
mail_layout_force · OCA/mail
OCA/social 14.0–17.0 → OCA/mail 18.0
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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_layoutmail.mail_notification_layout_with_responsible_signaturemail.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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
layout_idMany2one → ir.ui.viewondelete='cascade' args: 'ir.ui.view' -
model_idsMany2many → ir.modelhelp='Select models that the swapping applies to.'string='Models' args: 'ir.model' -
substitute_layout_idMany2one → ir.ui.viewdomain=[('type', '=', 'qweb')]help='Select a target layout.'required=True args: 'ir.ui.view'
No public methods.
-
layout_mapping_line_idsOne2many → email.layout.mappingargs: 'email.layout.mapping', 'layout_id'
No public methods.
No new fields.
Public methods (1)-
default_get(self, fields_list)@api.model
-
force_email_layout_idMany2one → ir.ui.viewcomodel_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'
No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…