Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] mail_template_substitute: Migration to 18.0 #1533

Open
wants to merge 25 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e02d5ed
[12.0][ADD] - new module: mail template substitute
sbejaoui Jul 23, 2019
8e81482
[FIX] - substitution mail template have the same model as the base te…
sbejaoui Jul 30, 2019
cd0a243
[FIX] - Add dependecy report_substitute
sbejaoui Jul 30, 2019
3ec8870
[12.0][ADD] - Add unit tests
sbejaoui Oct 1, 2019
c1f1c90
[UPD] Update mail_template_substitute.pot
oca-travis Mar 7, 2020
e17b579
[UPD] README.rst
OCA-git-bot Mar 7, 2020
5e27a80
[ADD] icon.png
OCA-git-bot Mar 7, 2020
52880b3
mail_template_substitute 12.0.1.0.1
OCA-git-bot Mar 7, 2020
39bcabc
[IMP] mail_template_substitute: black, isort, prettier
amkarthik Mar 31, 2023
a7e6ae7
[16.0][MIG] mail_template_substitute: Migration to 16.0
amkarthik Apr 3, 2023
38cd094
[UPD] Update mail_template_substitute.pot
Aug 4, 2023
d648328
[UPD] README.rst
OCA-git-bot Aug 4, 2023
231d546
[UPD] README.rst
OCA-git-bot Sep 3, 2023
185c1f9
Added translation using Weblate (Spanish)
Ivorra78 Nov 8, 2023
927e857
Translated using Weblate (Spanish)
Ivorra78 Nov 8, 2023
b86ecbf
Added translation using Weblate (Italian)
mymage Nov 30, 2023
851db05
Translated using Weblate (Italian)
mymage Dec 7, 2023
dac8365
Translated using Weblate (Italian)
mymage Dec 7, 2023
0a593b7
[IMP] mail_template_substitute: pre-commit auto fixes
sakthi-shan Feb 23, 2024
e5ae4ca
[MIG] mail_template_substitute: Migration to 17.0
sakthi-shan May 13, 2024
a7b3807
[UPD] Update mail_template_substitute.pot
May 27, 2024
397ac88
[BOT] post-merge updates
OCA-git-bot May 27, 2024
77e0b23
Update translation files
weblate Jul 7, 2024
a2bc7cc
[IMP] mail_template_substitute: pre-commit auto fixes
atchuthan Dec 31, 2024
4ff6777
[MIG] mail_template_substitute: Migration to 18.0
atchuthan Jan 1, 2025
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
97 changes: 97 additions & 0 deletions mail_template_substitute/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
========================
Mail Template Substitute
========================

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

.. |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/licence-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%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/18.0/mail_template_substitute
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_template_substitute
: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/social&target_branch=18.0
:alt: Try me on Runboat

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

This module allows you to create substitution rules for mail templates.
A typical use case is to replace a standard template by alternative
templates when some conditions are met. For instance, it allows to
configure alternate templates for different companies.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to 'Email' / 'Templates'
2. Select the desired template you want to substitute
3. In the substitutions page add a new line
4. Select the substitution template
5. Set a domain to specify when this substitution should happen

Known issues / Roadmap
======================



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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/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/social/issues/new?body=module:%20mail_template_substitute%0Aversion:%2018.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
-------

* ACSONE SA/NV

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

- Bejaoui Souheil <[email protected]>
- Karthik <[email protected]>
- Atchuthan <[email protected]>

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/social <https://github.com/OCA/social/tree/18.0/mail_template_substitute>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions mail_template_substitute/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
18 changes: 18 additions & 0 deletions mail_template_substitute/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Mail Template Substitute",
"summary": """
This module allows to create substitution rules for mail templates.
""",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social",
"depends": ["base", "mail"],
"data": [
"security/mail_template_substitution_rule.xml",
"views/mail_template.xml",
],
}
96 changes: 96 additions & 0 deletions mail_template_substitute/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_template_substitute
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-08 13:36+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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 4.17\n"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__create_date
msgid "Created on"
msgstr "Creado el"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__domain
msgid "Domain"
msgstr "Dominio"

#. module: mail_template_substitute
#: model:ir.model,name:mail_template_substitute.model_mail_template
msgid "Email Templates"
msgstr "Plantillas Correo Electrónico"

#. module: mail_template_substitute
#: model:ir.model,name:mail_template_substitute.model_mail_compose_message
msgid "Email composition wizard"
msgstr "Asistente de redacción de correo electrónico"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__id
msgid "ID"
msgstr "ID (identificación)"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__write_uid
msgid "Last Updated by"
msgstr "Actualizado por Última vez por"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__write_date
msgid "Last Updated on"
msgstr "Última Actualización el"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__mail_template_id
msgid "Mail Template"
msgstr "Plantilla de Correo"

#. module: mail_template_substitute
#: model:ir.model,name:mail_template_substitute.model_mail_template_substitution_rule
msgid "Mail Template Substitution Rule"
msgstr "Norma de Sustitución de Plantillas de Correo"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__model
msgid "Model"
msgstr "Modelo"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__sequence
msgid "Sequence"
msgstr "Secuencia"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__substitution_mail_template_id
msgid "Substitution Mail Template"
msgstr "Plantilla de Correo de Sustitución"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template__mail_template_substitution_rule_ids
#: model_terms:ir.ui.view,arch_db:mail_template_substitute.email_template_form
msgid "Substitution Rules"
msgstr "Reglas de Sustitución"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"
96 changes: 96 additions & 0 deletions mail_template_substitute/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_template_substitute
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-07 13:37+0000\n"
"Last-Translator: mymage <[email protected]>\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 4.17\n"

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

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

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

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__domain
msgid "Domain"
msgstr "Dominio"

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

#. module: mail_template_substitute
#: model:ir.model,name:mail_template_substitute.model_mail_compose_message
msgid "Email composition wizard"
msgstr "Procedura guidata creazione e-mail"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__id
msgid "ID"
msgstr "ID"

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

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

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__mail_template_id
msgid "Mail Template"
msgstr "Modello e-mail"

#. module: mail_template_substitute
#: model:ir.model,name:mail_template_substitute.model_mail_template_substitution_rule
msgid "Mail Template Substitution Rule"
msgstr "Regola sostituzione modello e-mail"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__model
msgid "Model"
msgstr "Modello"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__sequence
msgid "Sequence"
msgstr "Sequenza"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__substitution_mail_template_id
msgid "Substitution Mail Template"
msgstr "Modello e-mail sostituzione"

#. module: mail_template_substitute
#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template__mail_template_substitution_rule_ids
#: model_terms:ir.ui.view,arch_db:mail_template_substitute.email_template_form
msgid "Substitution Rules"
msgstr "Regole sostituzione"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"
Loading
Loading