Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ addon | version | maintainers | summary
[html_text](html_text/) | 17.0.1.0.0 | | Generate excerpts from any HTML field
[iap_alternative_provider](iap_alternative_provider/) | 17.0.1.0.0 | <a href='https://github.com/sebastienbeau'><img src='https://github.com/sebastienbeau.png' width='32' height='32' style='border-radius:50%;' alt='sebastienbeau'/></a> | Base module for providing alternative provider for iap apps
[jsonifier](jsonifier/) | 17.0.1.0.0 | | JSON-ify data for all models
[mail_template_attachment_per_lang](mail_template_attachment_per_lang/) | 17.0.1.0.0 | | Set language specific attachments on mail templates.
[module_analysis](module_analysis/) | 17.0.1.0.3 | <a href='https://github.com/legalsylvain'><img src='https://github.com/legalsylvain.png' width='32' height='32' style='border-radius:50%;' alt='legalsylvain'/></a> | Add analysis tools regarding installed modules to know which installed modules comes from Odoo Core, OCA, or are custom modules
[module_auto_update](module_auto_update/) | 17.0.1.0.0 | | Automatically update Odoo modules
[module_change_auto_install](module_change_auto_install/) | 17.0.1.0.2 | <a href='https://github.com/legalsylvain'><img src='https://github.com/legalsylvain.png' width='32' height='32' style='border-radius:50%;' alt='legalsylvain'/></a> | Customize auto installables modules by configuration
Expand Down
122 changes: 122 additions & 0 deletions mail_template_attachment_per_lang/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========================================
Mail Template Language Specific Attachments
===========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a075fae834285057e4a0f26c055240e2bc3b4586363b66887e80386a793fd60f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/17.0/mail_template_attachment_per_lang
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-mail_template_attachment_per_lang
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure a language dependent attachment:

1. Activate the developer mode;
2. go to *Settings > Technical > Email > Templates*;
3. go to the form view of the template you want to change;
4. choose the *Language Attachment Method* you want to use;
5. change the field *Language Dependent Attachments* to what you want.

Usage
=====

When a template is selected in the mail composer, the attachments will
be automatically added based on the recipients language. The language of
the recipients can be configured on the Partner form view. When partners
with different languages are selected all attachments of the partners
languages will be added.

To use the functionality:

1. Configure a template (e.g. the sale order mail template)
2. go to a sale order;
3. click *Send by Email*;
4. the attachments are added based on the email's language or the
customer's language (which might not be the same), depending on the
configuration of the template.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20mail_template_attachment_per_lang%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Onestein

Contributors
------------

- Dennis Sluijk <d.sluijk@onestein.nl>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/mail_template_attachment_per_lang>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mail_template_attachment_per_lang/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions mail_template_attachment_per_lang/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "Mail Template Language Specific Attachments",
"summary": "Set language specific attachments on mail templates.",
"author": "Onestein,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-tools",
"category": "Localization",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["mail"],
"data": ["views/mail_template_view.xml", "security/ir.model.access.csv"],
"installable": True,
}
173 changes: 173 additions & 0 deletions mail_template_attachment_per_lang/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_template_attachment_per_lang
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2026-02-17 10:09+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.15.2\n"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__assigned_attachment_ids
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__assigned_attachment_ids
msgid "Assigned Attachments"
msgstr "Allegati assegnati"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__attachment_id
msgid "Attachment"
msgstr "Allegato"

#. module: mail_template_attachment_per_lang
#: model:ir.model,name:mail_template_attachment_per_lang.model_ir_attachment_language
msgid "Attachment Language"
msgstr "Lingua allegato"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__changeset_change_ids
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__changeset_change_ids
msgid "Changeset Changes"
msgstr "Modifiche dell'insieme di modifiche"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__changeset_ids
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__changeset_ids
msgid "Changesets"
msgstr "Insieme di modifiche"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__count_changesets
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__count_changesets
msgid "Count Changesets"
msgstr "Conteggio insieme di modifiche"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__count_pending_changeset_changes
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__count_pending_changeset_changes
msgid "Count Pending Changeset Changes"
msgstr "Conteggio modifiche dell'insieme di modifiche in attesa"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__count_pending_changesets
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__count_pending_changesets
msgid "Count Pending Changesets"
msgstr "Conteggio insieme di modifiche in attesa"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__create_uid
msgid "Created by"
msgstr "Creato da"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__create_date
msgid "Created on"
msgstr "Creato il"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: mail_template_attachment_per_lang
#: model:ir.model,name:mail_template_attachment_per_lang.model_mail_template
msgid "Email Templates"
msgstr "Modelli e-mail"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__id
msgid "ID"
msgstr "ID"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__lang
msgid "Language"
msgstr "Lingua"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__ir_attachment_language_method
msgid "Language Attachment Method"
msgstr "Metodo allegato lingua"

#. module: mail_template_attachment_per_lang
#: model_terms:ir.ui.view,arch_db:mail_template_attachment_per_lang.mail_template_form
msgid "Language Attachments"
msgstr "Allegati lingua"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__ir_attachment_language_ids
msgid "Language Dependent Attachments"
msgstr "Allegati dipendenti dalla lingua"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"

#. module: mail_template_attachment_per_lang
#: model_terms:ir.ui.view,arch_db:mail_template_attachment_per_lang.mail_template_form
msgid "Method"
msgstr "Metodo"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields.selection,name:mail_template_attachment_per_lang.selection__mail_template__ir_attachment_language_method__partner_lang
msgid "Partner Language"
msgstr "Lingua del partner"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__smart_search
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__smart_search
msgid "Smart Search"
msgstr "Ricerca intelligente"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__mail_template_id
msgid "Template"
msgstr "Modello"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields.selection,name:mail_template_attachment_per_lang.selection__mail_template__ir_attachment_language_method__template_lang
msgid "Template Language"
msgstr "Lingua del modello"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,help:mail_template_attachment_per_lang.field_ir_attachment_language__count_pending_changeset_changes
#: model:ir.model.fields,help:mail_template_attachment_per_lang.field_mail_template__count_pending_changeset_changes
msgid "The number of pending changes of this record"
msgstr "Numero di modifiche di questo record in attesa"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,help:mail_template_attachment_per_lang.field_ir_attachment_language__count_pending_changesets
#: model:ir.model.fields,help:mail_template_attachment_per_lang.field_mail_template__count_pending_changesets
msgid "The number of pending changesets of this record"
msgstr "Numero di insiemi di modifiche in attesa di questo record"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,help:mail_template_attachment_per_lang.field_ir_attachment_language__count_changesets
#: model:ir.model.fields,help:mail_template_attachment_per_lang.field_mail_template__count_changesets
msgid "The overall number of changesets of this record"
msgstr "Numero totale di insiemi di modifiche di questo record"

#. module: mail_template_attachment_per_lang
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_ir_attachment_language__user_can_see_changeset
#: model:ir.model.fields,field_description:mail_template_attachment_per_lang.field_mail_template__user_can_see_changeset
msgid "User Can See Changeset"
msgstr "L'utente può vedere l'insieme delle modifiche"
Loading
Loading