500: Internal Server Error

Traceback

Traceback (most recent call last):
  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo/http.py", line 806, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/odoo/http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 347, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/http.py", line 912, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/http.py", line 531, in response_wrap
    response = f(*args, **kw)
  File "/mnt/extra-addons/student_assignment_list/controllers/controllers.py", line 19, in assignment_line
    assignments_lists = request.env['op.assignment'].sudo().search([
  File "/opt/odoo/odoo/models.py", line 1705, in search
    return res if count else self.browse(res)
  File "/opt/odoo/odoo/models.py", line 4952, in browse
    if not ids:
  File "/opt/odoo/odoo/osv/query.py", line 156, in __bool__
    return bool(self._result)
  File "/opt/odoo/odoo/tools/func.py", line 26, in __get__
    value = self.fget(obj)
  File "/opt/odoo/odoo/osv/query.py", line 149, in _result
    self._cr.execute(query_str, params)
  File "<decorator-gen-3>", line 2, in execute
  File "/opt/odoo/odoo/sql_db.py", line 101, in check
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo/sql_db.py", line 298, in execute
    res = self._obj.execute(query, params)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo/http.py", line 806, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/odoo/http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 347, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/http.py", line 912, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/http.py", line 531, in response_wrap
    response = f(*args, **kw)
  File "/mnt/extra-addons/student_assignment_list/controllers/controllers.py", line 19, in assignment_line
    assignments_lists = request.env['op.assignment'].sudo().search([
  File "/opt/odoo/odoo/models.py", line 1705, in search
    return res if count else self.browse(res)
  File "/opt/odoo/odoo/models.py", line 4952, in browse
    if not ids:
  File "/opt/odoo/odoo/osv/query.py", line 156, in __bool__
    return bool(self._result)
  File "/opt/odoo/odoo/tools/func.py", line 26, in __get__
    value = self.fget(obj)
  File "/opt/odoo/odoo/osv/query.py", line 149, in _result
    self._cr.execute(query_str, params)
  File "<decorator-gen-3>", line 2, in execute
  File "/opt/odoo/odoo/sql_db.py", line 101, in check
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo/sql_db.py", line 298, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.UndefinedFunction: operator does not exist: integer = boolean
LINE 1: ...ment_id" FROM "op_assignment_sub_line" WHERE "id" IN (false)...
                                                             ^
HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.