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

[18.0][MIG] mail_template_substitute: Migration to 18.0 #39

Open
wants to merge 2 commits into
base: 18.0
Choose a base branch
from
Open
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
96 changes: 96 additions & 0 deletions mail_template_substitute/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
========================
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%2Fmail-lightgray.png?logo=github
:target: https://github.com/OCA/mail/tree/18.0/mail_template_substitute
:alt: OCA/mail
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-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/mail&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/mail/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/mail/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]>

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/mail <https://github.com/OCA/mail/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/mail",
"depends": ["base", "mail"],
"data": [
"security/mail_template_substitution_rule.xml",
"views/mail_template.xml",
],
}
98 changes: 98 additions & 0 deletions mail_template_substitute/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# 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____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. 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"
98 changes: 98 additions & 0 deletions mail_template_substitute/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# 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____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. 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"
Loading