Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.5 kB
1
Indexable
Never
File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 370, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "D:\02. Project\Odoo\dev_env\server\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 358, in checked_call
    result = self.endpoint(*a, **kw)
  File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 919, in _call_
    return self.method(*args, **kw)
  File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 544, in response_wrap
    response = f(*args, **kw)
  File "D:\02. Project\Odoo\dev_env\server\odoo\addons\web\controllers\main.py", line 1389, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "D:\02. Project\Odoo\dev_env\server\odoo\addons\web\controllers\main.py", line 1381, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "D:\02. Project\Odoo\dev_env\server\odoo\api.py", line 395, in call_kw
    result = _call_kw_model(method, model, args, kwargs)
  File "D:\02. Project\Odoo\dev_env\server\odoo\api.py", line 368, in _call_kw_model
    result = method(recs, *args, **kwargs)
  File "d:\02. project\odoo\cipi-cni\core\app_web_superbar\models\base.py", line 136, in search_panel_select_range
    comodel_records = Comodel.search_read(comodel_domain, field_names, limit=limit)
  File "D:\02. Project\Odoo\dev_env\server\odoo\models.py", line 4855, in search_read
    records = self.search(domain or [], offset=offset, limit=limit, order=order)
  File "d:\02. project\odoo\cipi-cni\core\remove_odoo_enterprise\models\base.py", line 12, in search
    res = super().search(domain, offset, limit, order, count)
  File "D:\02. Project\Odoo\dev_env\server\odoo\models.py", line 1708, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "D:\02. Project\Odoo\dev_env\server\odoo\addons\base\models\res_users.py", line 593, in _search
    access_rights_uid=access_rights_uid)
  File "D:\02. Project\Odoo\dev_env\server\odoo\models.py", line 4524, in _search
    query = self._where_calc(args)
  File "D:\02. Project\Odoo\dev_env\server\odoo\models.py", line 4280, in _where_calc
    return expression.expression(domain, self).query
  File "D:\02. Project\Odoo\dev_env\server\odoo\osv\expression.py", line 442, in _init_
    self.parse()
  File "D:\02. Project\Odoo\dev_env\server\odoo\osv\expression.py", line 668, in parse
    dom = HIERARCHY_FUNCS[operator](left, ids2, model)
  File "D:\02. Project\Odoo\dev_env\server\odoo\osv\expression.py", line 576, in parent_of_domain
    records = records[parent_name] - records.browse(parent_ids)
  File "D:\02. Project\Odoo\dev_env\server\odoo\models.py", line 5606, in _sub_
    raise TypeError("Mixing apples and oranges: %s - %s" % (self, other))
Exception

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

Traceback (most recent call last):
  File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 652, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "D:\02. Project\Odoo\dev_env\server\odoo\http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
TypeError: Mixing apples and oranges: res.partner() - res.users(2,)