Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
5616 มุมมอง


Impacted versions:

8.0 at least

Steps to reproduce:

Open a runbot

Before login change database to uuid-whatsoever-base

Change back database to uuid-whatsoever-all

Current behavior:

HTTP 500 Internal server error

Reloading the page fixes the problem

Seems to happen only on the login page when website module is not installed

Logs give

Traceback (most recent call last):

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\serving.py", line 177, in run_wsgi

execute(self.server.app)

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\serving.py", line 165, in execute

application_iter = app(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\service\server.py", line 281, in app

return self.app(e, s)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\service\wsgi_server.py", line 216,

in application

return application_unproxied(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\service\wsgi_server.py", line 202, in application_unproxied

result = handler(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 1280, in call

return self.dispatch(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 1254, in call

return self.app(environ, start_wrapped)

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\wsgi.py", line 588, in call

return self.app(environ, start_response)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 1421, in dispatch

result = ir_http.dispatch()

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\addons\base\ir\ir_http.py", line 168, in dispatch

return self._handle_exception(e)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\addons\base\ir\ir_http.py", line 132, in _handle_exception

attach = self._serve_attachment()

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\addons\base\ir\ir_http.py", line 104, in _serve_attachment

request.cr, openerp.SUPERUSER_ID, domain,

File "C:\Program Files (x86)\Python27\lib\site-packages\werkzeug\local.py", line 338, in __getattr

return getattr(self._get_current_object(), name)

File "C:\Users\nicolas\Documents\Progs\GitHub\odoo\openerp\http.py", line 240, in cr

self._cr = self.registry.cursor()

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

Expected behavior:

Flawless switch between databases

อวตาร
ละทิ้ง

This issue has been reported at https://github.com/odoo/odoo/issues/6100 - did you copy and paste your post from there?

คำตอบที่ดีที่สุด

I create PR regarding this. It will fix your problem.

Link: https://github.com/odoo/odoo/pull/6705

อวตาร
ละทิ้ง
ผู้เขียน

Thanks Rakesh Sindhav , Its working.

คำตอบที่ดีที่สุด

If you refresh page work fine too.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Clear cache memory of browser or delete history 

อวตาร
ละทิ้ง
ผู้เขียน

Still not solved