Include inactive users when searching for admin user
issue7396 review45451002
This commit is contained in:
1 parent
afe5c180b4
commit
9771137d6a
1 file changed
+2
-1
+2
-1
@@ -73,7 +73,8 @@ def run(options):
|
||||
with Transaction().start(db_name, 0) as transaction:
|
||||
pool = Pool()
|
||||
User = pool.get('res.user')
|
||||
admin, = User.search([('login', '=', 'admin')])
|
||||
with transaction.set_context(active_test=False):
|
||||
admin, = User.search([('login', '=', 'admin')])
|
||||
|
||||
if options.email is not None:
|
||||
admin.email = options.email
|
||||
|
||||
Reference in new issue
Block a user