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

[16.0][MIG] mail_notification_custom_subject #1454

Open
wants to merge 24 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7eadcbd
[ADD] mail_notification_custom_subject: Apply a custom subject to mai…
joao-p-marques Jan 5, 2021
e5bc903
[IMP] mail_notification_custom_subject: black, isort, prettier
CarlosRoca13 Feb 15, 2021
ea99a7e
[MIG] mail_notification_custom_subject: Migration to v13.0
CarlosRoca13 Feb 16, 2021
469320a
[IMP] mail_notification_custom_subject: Add comment to explain test_b…
victoralmau Apr 19, 2021
a2c6518
[IMP] mail_notification_custom_subject: black, isort, prettier
Aug 12, 2021
1249a3e
[MIG] mail_notification_custom_subject: Migration to 14.0
Aug 12, 2021
a5ec604
[UPD] Update mail_notification_custom_subject.pot
oca-travis Aug 30, 2021
7035abe
[FIX] mail_notification_custom_subject: Error modifying subtype_id
olgamarcocb Jan 24, 2022
8c6eed2
[MIG] mail_notification_custom_subject: Migration to 15.0
victoralmau Oct 19, 2022
fde280d
[UPD] Update mail_notification_custom_subject.pot
Oct 25, 2022
2cb0ddd
[UPD] README.rst
OCA-git-bot Oct 25, 2022
207194d
Update translation files
weblate Oct 25, 2022
120237d
[FIX] mail_notification_custom_subject: do not require being admin to…
yajo Dec 2, 2022
79efb39
[BUILD] mail_notification_custom_subject: change maintainer
yajo Dec 2, 2022
0e8b8b0
[UPD] README.rst
OCA-git-bot Dec 2, 2022
80c9866
mail_notification_custom_subject 15.0.1.0.1
OCA-git-bot Dec 2, 2022
6934506
[FIX] mail_notification_custom_subject: Use same approach as Odoo whe…
Shide Dec 14, 2022
819f8d0
[UPD] README.rst
OCA-git-bot Dec 14, 2022
ea687ad
mail_notification_custom_subject 15.0.1.0.2
OCA-git-bot Dec 14, 2022
fcb463d
[IMP] mail_notification_custom_subject: add migration script for conv…
ernesto-garcia-tecnativa Mar 31, 2023
92779a0
[UPD] README.rst
OCA-git-bot Sep 3, 2023
98b50ac
Added translation using Weblate (Spanish)
Ivorra78 Oct 20, 2023
9a79fa4
Translated using Weblate (Spanish)
Ivorra78 Oct 20, 2023
6bdb165
[16.0][MIG] mail_notification_custom_subject
edlopen Oct 1, 2024
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
123 changes: 123 additions & 0 deletions mail_notification_custom_subject/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
================================
Mail Notification Custom Subject
================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/16.0/mail_notification_custom_subject
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_notification_custom_subject
: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=16.0
:alt: Try me on Runboat

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

This module allows you to specify templates to override the subject on the notification
emails sent by Odoo

**Table of contents**

.. contents::
:local:

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


* Activate access to **Technical Features** (debug mode).
* Go to **Settings > Technical > Email > Subject Replacement Templates**
* Create a new template.

* The field **Model** specifies the model to which the subject template should apply in the notification emails sent by Odoo.
* The field **Subject Template** accepts `Jinja <https://jinja.palletsprojects.com/en/2.11.x/>`__ expressions.
* The field **Replace** specifies if the template should replace existing content or append to it.

Usage
=====

To use this module, you need to:

* Open the chatter in Odoo (e.g. Open an Invoice).
* Send a message.
* Observe the rendered Subject template.

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_notification_custom_subject%0Aversion:%2016.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* Tecnativa <https://www.tecnativa.com>

* Pedro M. Baeza
* João Marques
* Carlos Roca
* Víctor Martínez

* Versada <https://versada.eu>
* Naglis Jonaitis

* Moduon <https://www.moduon.team>
* Eduardo de Miguel

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.

.. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px
:target: https://github.com/yajo
:alt: yajo
.. |maintainer-edlopen| image:: https://github.com/edlopen.png?size=40px
:target: https://github.com/edlopen
:alt: edlopen
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-yajo| |maintainer-edlopen| |maintainer-rafaelbn|

This module is part of the `OCA/social <https://github.com/OCA/social/tree/16.0/mail_notification_custom_subject>`_ 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_notification_custom_subject/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions mail_notification_custom_subject/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020-2021 Tecnativa - João Marques
# Copyright 2021 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Mail Notification Custom Subject",
"summary": "Apply a custom subject to mail notifications",
"version": "16.0.1.0.0",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["mail"],
"data": [
"security/ir.model.access.csv",
"views/mail_notification_custom_subject_views.xml",
],
"development_status": "Production/Stable",
"maintainers": ["yajo", "edlopen", "rafaelbn"],
}
129 changes: 129 additions & 0 deletions mail_notification_custom_subject/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_notification_custom_subject
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-28 13:30+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_notification_custom_subject
#: model:ir.model.fields.selection,name:mail_notification_custom_subject.selection__mail_message_custom_subject__position__append_after
msgid "Append After"
msgstr "Añadir Después"

#. module: mail_notification_custom_subject
#: model:ir.model.fields.selection,name:mail_notification_custom_subject.selection__mail_message_custom_subject__position__append_before
msgid "Append Before"
msgstr "Añadir antes de"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,field_description:mail_notification_custom_subject.field_mail_message_custom_subject__subtype_ids
msgid "Applied Subtypes"
msgstr "Subtipos Aplicados"

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

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

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

#. module: mail_notification_custom_subject
#: model:ir.model,name:mail_notification_custom_subject.model_mail_thread
msgid "Email Thread"
msgstr "Hilo de Correo Electrónico"

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

#. module: mail_notification_custom_subject
#: model:ir.model.fields,field_description:mail_notification_custom_subject.field_mail_message_custom_subject____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

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

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

#. module: mail_notification_custom_subject
#: model:ir.model,name:mail_notification_custom_subject.model_mail_message_custom_subject
msgid "Mail Message Custom Subject"
msgstr "Mensaje de correo Asunto personalizado"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,field_description:mail_notification_custom_subject.field_mail_message_custom_subject__model_id
msgid "Model"
msgstr "Modelo"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,help:mail_notification_custom_subject.field_mail_message_custom_subject__model_id
msgid "Model where this template applies"
msgstr "Modelo al que se aplica esta plantilla"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,field_description:mail_notification_custom_subject.field_mail_message_custom_subject__position
msgid "Position"
msgstr "Posición"

#. module: mail_notification_custom_subject
#: model:ir.model.fields.selection,name:mail_notification_custom_subject.selection__mail_message_custom_subject__position__replace
msgid "Replace"
msgstr "Reemplazar"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,help:mail_notification_custom_subject.field_mail_message_custom_subject__subject_template
#: model_terms:ir.ui.view,arch_db:mail_notification_custom_subject.mail_notification_custom_subject_form
msgid "Subject (placeholders may be used here)"
msgstr "Asunto (pueden utilizarse marcadores de posición)"

#. module: mail_notification_custom_subject
#: model:ir.actions.act_window,name:mail_notification_custom_subject.action_mail_notification_custom_subject_tree_all
#: model:ir.ui.menu,name:mail_notification_custom_subject.menu_mail_notification_custom_subject
#: model_terms:ir.ui.view,arch_db:mail_notification_custom_subject.mail_notification_custom_subject_form
msgid "Subject Replacement Templates"
msgstr "Plantillas de Sustitución de Temas"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,field_description:mail_notification_custom_subject.field_mail_message_custom_subject__subject_template
msgid "Subject Template"
msgstr "Tema Plantilla"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,field_description:mail_notification_custom_subject.field_mail_message_custom_subject__name
msgid "Template Name"
msgstr "Nombre de Plantilla"

#. module: mail_notification_custom_subject
#: model:ir.model.fields,help:mail_notification_custom_subject.field_mail_message_custom_subject__position
msgid ""
"Whether to replace, append at beggining or append at end to other templates "
"that apply to a given context"
msgstr ""
"Si reemplazar, añadir al principio o añadir al final a otras plantillas que "
"se aplican a un contexto determinado"
Loading
Loading