summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-06-18 08:19:20 +0000
committerXavier Morel <xmo@odoo.com>2020-06-18 12:17:15 +0000
commit5a6d4c493248bfd8b55c8abee175b21f414de0c6 (patch)
treef77c2f9f110d1262cb0d7275a7629e4bd9ae2ea2 /addons/web/static/src/js/fields/basic_fields.js
parent26489212f7e2e72aaff5b836eb10f1b7a1abfa34 (diff)
[FIX] mail: when warning about password user, fetch partner as su
The superuser is already used to check whether modules are installed with demo data and create the notification. It was not used for accessing the admin partner though, so in the case where a user is logging in with the password "admin" and with no access to `partner_admin` it's going to blow up the login process despite no reason to. Admittedly this is somewhat difficult to achieve in "standard" odoo, it was only discovered because 2FA (odoo/odoo#33928) can reach this point without having a "proper" session set up as that set up is delayed until after the MFA step has succeeded while `_admin_password_warn` is part of the redirection flow from the initial login (user/password input). closes odoo/odoo#53244 X-original-commit: d18d226084a8b47f2858d8a271886115b29d7b2f Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions