Commit Graph

13 Commits (430eaaa901b2d2b1c1580014d7eb3a6676ef4ca6)

Author SHA1 Message Date
Víctor Martínez 6645a95547 [IMP] mail_notification_custom_subject: Add inside_replace position
Example use Case:
Our company is called: MY_COMPANY_NAME but is known as MCN,
we want to replace in some places the subject line so that it is sent with MCN

TT52259
2025-02-03 10:09:46 +01:00
Víctor Martínez 1b770482cf [IMP] mail_notification_custom_subject: Add a log when there is an Exception to know what has happened
TT52259
2025-02-03 10:08:43 +01:00
Víctor Martínez 5abe8eaaec [IMP] mail_notification_custom_subject: Do not replace the subject if it is already set
If we write something from the mail thread (without subject) it is only when it should replace the subject.

TT52259
2025-02-03 10:08:43 +01:00
maciej-wichowski fde4ba078a [MIG] mail_notification_custom_subject: migration to 17.0 2024-04-09 12:14:08 +02:00
maciej-wichowski f7b15d4e6f [IMP] mail_notification_custom_subject: pre-commit auto fixes 2024-04-09 11:46:14 +02:00
Eduardo De Miguel 44d8a03191 [FIX] mail_notification_custom_subject: Use same approach as Odoo when selecting subtype_id 2024-04-09 11:39:32 +02:00
Jairo Llopis c284bafbc1 [FIX] mail_notification_custom_subject: do not require being admin to send messages
After installing the module, any user was required to have admin rights to be able to search across models.

This fix does just that search with sudo and returns back to non-sudo mode immediately after. This way, we don't need to increase permissions for everybody.

Tests now run unprivileged, to assert this problem never happens again.

@moduon MT-1644 MT-1645
2024-04-09 11:39:32 +02:00
Víctor Martínez 254dc57e44 [MIG] mail_notification_custom_subject: Migration to 15.0
TT36470
2024-04-09 11:39:32 +02:00
Olga Marco 3522215b51 [FIX] mail_notification_custom_subject: Error modifying subtype_id
[IMP] update dotfiles [ci skip]
2024-04-09 11:39:32 +02:00
Naglis Jonaitis 25c182822e [MIG] mail_notification_custom_subject: Migration to 14.0 2024-04-09 11:39:32 +02:00
Naglis Jonaitis 04734da384 [IMP] mail_notification_custom_subject: black, isort, prettier 2024-04-09 11:39:32 +02:00
Carlos Roca cec4c079c5 [IMP] mail_notification_custom_subject: black, isort, prettier 2024-04-09 11:39:32 +02:00
João Marques 7e44259b35 [ADD] mail_notification_custom_subject: Apply a custom subject to mail notifications
This module allows you to specify templates to override the subject on the notification
emails sent by Odoo.

TT27191

Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
2024-04-09 11:39:32 +02:00