From ec5885ae5bfd93cdb2868e422ba0b2bf2b39735e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 18 May 2018 12:20:01 +0200 Subject: [PATCH] [REF] mail: remove unnecessary headers in notification emails Several contextual data is added in notification emails in their headers. We consider as not necessary to put some of them, notably db uid. It should not be used outside of Odoo and having Odoo-Objects should be sufficient for people that want to categorize their emails. --- addons/mail/models/mail_thread.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py index 1fdf8cb656b..e247df26c8f 100644 --- a/addons/mail/models/mail_thread.py +++ b/addons/mail/models/mail_thread.py @@ -832,10 +832,8 @@ class MailThread(models.AbstractModel): if not self: return {} self.ensure_one() - database_uuid = self.env['ir.config_parameter'].sudo().get_param('database.uuid') return {'headers': repr({ 'X-Odoo-Objects': "%s-%s" % (self._name, self.id), - 'X-Odoo-db-uuid': database_uuid })} @api.model