diff options
| author | Xavier Morel <xmo@odoo.com> | 2019-09-30 10:30:08 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-09-30 10:34:42 +0000 |
| commit | 0c7f7b186d383cdf82f321fe02dfea28d6a51cc9 (patch) | |
| tree | 46286c1150a6ec7cd34085e62b917a15af7d19bd /addons/mail/controllers/__init__.py | |
| parent | 974913c316a712dac2373e6e7401b0589207e5f7 (diff) | |
[FIX] web, mail: move admin login warning to mail
Fixes #33254:
* was in mail despite using mail.channel (which breaks if mail is not
installed, and web doesn't depend on mail)
* changes to sudo() broke previous behaviour (of having odoobot
message the admin, we ended up with the admin messaging themselves)
so fix that
* also get the channel and message with the user's context, otherwise
since we're during the login procedure the context could be as
little as just the lang from the browser and apparently channel_get
automatically creates a translation which would break if the
browser's lang is not installed in Odoo
closes odoo/odoo#37580
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/mail/controllers/__init__.py')
| -rw-r--r-- | addons/mail/controllers/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/controllers/__init__.py b/addons/mail/controllers/__init__.py index 48f637f49a7..733774e9800 100644 --- a/addons/mail/controllers/__init__.py +++ b/addons/mail/controllers/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -* from . import main from . import bus +from . import home |
