summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/models/mail_thread.py')
-rw-r--r--addons/mail/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py
index 9ed782b40a8..dd92247078f 100644
--- a/addons/mail/models/mail_thread.py
+++ b/addons/mail/models/mail_thread.py
@@ -431,7 +431,7 @@ class MailThread(models.AbstractModel):
# ------------------------------------------------------
def with_lang(self):
- if 'lang' not in self._context:
+ if not self._context.get("lang"):
return self.with_context(lang=self.env.user.lang)
return self