diff options
| author | Sébastien Theys <seb@odoo.com> | 2018-08-24 15:46:36 +0200 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2018-08-24 15:55:46 +0200 |
| commit | 1addade28bf27b9adca8559740a533ce600957b1 (patch) | |
| tree | 7aa44944ee39d717f5d995c1941c306faa20cc5f /odoo/__init__.py | |
| parent | b8c6c24bbb15e725a5a7e76243c22c57d4dbc065 (diff) | |
[FIX] base: correctly detect when admin logs in
Since 2f7c03d9ca5809b65dc6eaa778064668d34fcd2e it's not possible to log in as user 1.
However, we reset the base url when the admin logs in, which is now user 2.
This fixes wkhtml2pdf was not able to load css file, and probably some other side effects.
PR: none
Task: 1879620
Diffstat (limited to 'odoo/__init__.py')
| -rw-r--r-- | odoo/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/__init__.py b/odoo/__init__.py index c6fa6e3032a..33b072cdd77 100644 --- a/odoo/__init__.py +++ b/odoo/__init__.py @@ -63,6 +63,8 @@ if hasattr(time, 'tzset'): #---------------------------------------------------------- # The hard-coded super-user id (a.k.a. administrator, or root user). SUPERUSER_ID = 1 +ADMINUSER_ID = 2 + def registry(database_name=None): """ |
