コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5 返信
5593 ビュー


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