Commit Graph
17 Commits
Author SHA1 Message Date
Cédric Krier 74ee169c54 Refactor of trytond.config to add cache
This removes the need to store configuration in global variable and so make it
easier to update for example for testing.

Closes #14249
2025-10-07 08:19:57 +02:00
Cédric Krier 380f7c6941 Slugify filename of email attachment
This gives more chance for the email to not be blocked as some mail server
implement restrictions on the filename of attachment.

Closes #14074
2025-06-15 12:19:39 +02:00
Cédric Krier a362054bbf Remove "User" suffix from fallback recipients of email notification 2025-01-26 11:52:37 +01:00
Maxime Richez def1dff17b Allow setting fallback user without corresponding field to email notification
Closes #13705
2025-01-26 11:50:48 +01:00
Cédric Krier 27e589ccd7 Do not set empty To, Cc nor Bcc in email message
Since gh-102988, email.utils.getaddresses() return [('', '')] for invalid email
addresses which includes empty string if the header is set with an empty list.

Closes #13649
2024-11-18 08:44:57 +01:00
Udo Spallek 8b252472c4 Replace usage of docstring of Model by __string__ attribute
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier 7449eda49c Rename ir.model 'model' field into 'name' 2024-11-16 21:17:55 +01:00
Cédric Krier 8f96e4af72 Unify email terminology
Closes #13463
2024-08-22 09:52:06 +02:00
Cédric Krier cd3395b233 Add email constructor from message 2024-02-21 21:43:50 +01:00
Cédric Krier 3cc0bb6c15 Add send_message methods to sendmail
Closes #13048
2024-02-21 21:38:53 +01:00
Cédric Krier b60f0b7044 Store model name on ir.model.field 2024-02-23 18:40:52 +01:00
Cédric Krier a29ef14d49 Remove unused get_mime on notification email attachment 2024-01-25 16:08:47 +01:00
Cédric Krier 25b8316733 Use EmailMessage to construct emails
Closes #12958
2024-01-25 16:04:05 +01:00
Cédric Krier 13cedb53e8 Convert email address to ASCII to support RFC6530
Python email library does not support non-ASCII emails so we convert email
addresses to ASCII version before passing them to sendmail.

Closes #10650
2023-04-29 19:04:18 +02:00
Cédric Krier 2808d7dfc2 Fix languages variable name typo in emails 2023-03-27 16:11:19 +02:00
Cédric Krier 0440145051 Merge notification email logs into email archives 2023-02-09 18:50:05 +01:00
Cédric Krier 297396a962 Prepare migration to monorepo 2022-12-16 18:06:34 +01:00