TIP: You can type at any time to perform a new search.
Mail Template Language Specific Attachments
mail_template_attachment_per_lang · OCA/server-tools
- Repository
- OCA/server-tools · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Localization
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/server-tools
- Last tracking update
- 2026-08-07 08:42:58
- Authors
- Odoo Community Association (OCA), Onestein
- Maintainers
- Odoo Community Association (OCA), Onestein
- Committers
- LauraCForgeFlow, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis ⓘ
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → ir.attachmentcomodel_name='ir.attachment'ondelete='cascade'required=Truestring='Attachment' -
langSelectionrequired=Trueselection=<expr>string='Language' -
mail_template_idMany2one → mail.templatecomodel_name='mail.template'ondelete='cascade'required=Truestring='Template'
No public methods.
New fields (2)
-
ir_attachment_language_idsOne2many → ir.attachment.languagecomodel_name='ir.attachment.language'inverse_name='mail_template_id'string='Language Dependent Attachments' -
ir_attachment_language_methodSelectiondefault='partner_lang'selection=[('partner_lang', 'Partner Language'), ('template_lang', 'Template Language')]string='Language Attachment Method'
No public methods.
Loading…