[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.
This commit is contained in:
Thibault Delavallée
2018-05-18 13:09:56 +02:00
parent 7e59d30d9c
commit ec5885ae5b
-2
View File
@@ -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