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

后端 未结 4 1261
太阳男子
太阳男子 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:51

    Try following changes in:

    openerp/addons/base/ir/ir_http.py

    In method _handle_exception somewhere around line 140 you will find this piece of code:

    attach = self._serve_attachment()
    if attach:
        return attach
    

    Replace it with:

    if isinstance(exception, werkzeug.exceptions.HTTPException) and exception.code == 404:
        attach = self._serve_attachment()
        if attach:
            return attach
    

提交回复
热议问题