Odoo Help

2

Switching database in login screen gives Internal server error on server.

By
Parikshit
on 9/26/15, 4:46 AM 748 views

AttributeError: 'NoneType' object has no attribute 'cursor'


1
Parikshit
On 9/26/15, 4:49 AM

Hello,

for this change in below file : 

addons/web/controllers/main.py on line num : 142.

     # always switch the session to the computed db
if db != request.session.db:
request.session.logout()
+ request.session.db = db
abort_and_redirect(request.httprequest.url)

- request.session.db = db

def module_installed():
# Candidates module the current heuristic is the /static dir


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/26/15, 4:46 AM
Seen: 748 times
Last updated: 12/2/15, 8:49 AM