Fixed Deprecated Warning
This commit is contained in:
parent
23ec60a8cf
commit
836c7d0981
@ -13,7 +13,7 @@ class IrMailServer(models.Model):
|
||||
def _tracking_headers_add(self, tracking_email_id, headers):
|
||||
"""Allow other addons to add its own tracking SMTP headers"""
|
||||
headers = headers or {}
|
||||
headers["X-Odoo-Database"] = getattr(threading.currentThread(), "dbname", None)
|
||||
headers["X-Odoo-Database"] = getattr(threading.current_thread(), "dbname", None)
|
||||
headers["X-Odoo-MailTracking-ID"] = tracking_email_id
|
||||
return headers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user