From fcd3b3c52b7ec202fb15c76d6fb9c137d25e4c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 2 Feb 2023 14:29:26 +0000 Subject: [PATCH] [IMP] mail, auth_signup: correctly categorize emails Mail.message holds a 'message_type' selection field allowing to categorize the usage of the message: email (incoming emails), comment (user generated input), notification (system generated input) and user_notification. This one indicates the message (or mail) targets some specific recipients and has notably specific display tweaks, to avoid bloating the chatter. In this commit we fix category of some emails, setting as notifications when it has no generic usage on a given document. Task-2710804 (Mail: Clean MailThread API) closes odoo/odoo#111781 X-original-commit: 82374eefd536a1090be5a0845956a0d7cf493cb0 Signed-off-by: Thibault Delavallee (tde) --- addons/auth_signup/models/res_users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/auth_signup/models/res_users.py b/addons/auth_signup/models/res_users.py index 72860e96ba5..2031b1f51ee 100644 --- a/addons/auth_signup/models/res_users.py +++ b/addons/auth_signup/models/res_users.py @@ -187,6 +187,7 @@ class ResUsers(models.Model): email_values = { 'email_cc': False, 'auto_delete': True, + 'message_type': 'user_notification', 'recipient_ids': [], 'partner_ids': [], 'scheduled_date': False,