Odoo Help

Welcome!

This community 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.

2

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

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

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


1

Parikshit

--Parikshit--
939
| 6 3 8
Ahmedabad, India
--Parikshit--

Working as an OpenERP/Odoo developer both experience in web and addons. you can contact me at:

E-mail : parikshitvaghasiya@gmail.com

Blog : parikshitvaghasiya.blogspot.in

Stackoverflow : http://stackoverflow.com/users/5089106/parikshit-vaghasiya

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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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