Why am I getting “Internal Server Error” running two Odoo instances (same domain but different ports)?

后端 未结 4 1260
太阳男子
太阳男子 2021-01-18 08:07

I have two instances of Odoo in a server in the cloud. If I make the following steps I get \"Internal Server Error\":

  1. I make login in the first instance (
4条回答
  •  星月不相逢
    2021-01-18 08:37

    If you have access to the sourcecode you can change this file like shown below and check if the issue is solved or not.

    addons/web/controllers/main.py

    if db != request.session.db:
         request.session.logout()
         request.session.db = db
         abort_and_redirect(request.httprequest.url)
    

    And delete --> request.session.db = db

    which is below this IF statement.

提交回复
热议问题