Skip to content
Health
62/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 17.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.05 MB
Module directory on disk
Code analysis 0 migration notes 2 models 1 view 0 HTTP endpoints

Description

This module extends the functionality of mail templates.

It allows you to configure attachments based on the language of the partner or the language configured in the mail template (which is some times different from the partner's language).

  • The email template's language could be {{ object.partner_id.lang }} or {{ object.user_id.lang }}, where in the first case we want to send the email in the partner's language and in the second case we want to send the email in the user's language.

For example you can use it to localize your company's terms of agreements.

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 1

XML IDNameModelTypeStatus
mail_template_form mail.template.form mail.template form Inherits mail.email_template_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (3)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' ondelete='cascade' required=True string='Attachment'
  • lang Selection
    required=True selection=<expr> string='Language'
  • mail_template_id Many2one → mail.template
    comodel_name='mail.template' ondelete='cascade' required=True string='Template'
Public methods (0)

No public methods.

New fields (2)
  • ir_attachment_language_ids One2many → ir.attachment.language
    comodel_name='ir.attachment.language' inverse_name='mail_template_id' string='Language Dependent Attachments'
  • ir_attachment_language_method Selection
    default='partner_lang' selection=[('partner_lang', 'Partner Language'), ('template_lang', 'Template Language')] string='Language Attachment Method'
Public methods (0)

No public methods.

Loading…

Loading…