Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
2197 Vizualizări

Good morning,
It’s new enough for us, and we’re new to Odoo.
We installed Odoo 15 Community on a VPS server.
We have this concern about the module "Contact" when we want to consult a profile


Error : 

RPC_ERROR


Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/api.py", line 886, in get
    return field_cache[record._ids[0]]
KeyError: 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/fields.py", line 1057, in __get__
    value = env.cache.get(record, self)
  File "/odoo/odoo-server/odoo/api.py", line 889, in get
    raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: 'res.partner(2,).ticket_count'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/odoo/odoo-server/odoo/tools/func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "/odoo/odoo-server/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.rule', , 2, False, 'helpdesk.ticket', 'read', ((2,), None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/tools/safe_eval.py", line 330, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
  File "", line 1, in 
  File "/odoo/odoo-server/odoo/fields.py", line 4061, in __get__
    raise ValueError("Expected singleton: %s" % record)
ValueError: Expected singleton: helpdesk.team(5, 3, 4)

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

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo-server/odoo/http.py", line 688, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 917, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1348, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1340, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 464, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 451, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo/odoo-server/odoo/models.py", line 3227, in read
    return self._read_format(fnames=fields, load=load)
  File "/odoo/odoo-server/odoo/models.py", line 3247, in _read_format
    vals[name] = convert(record[name], record, use_name_get)
  File "/odoo/odoo-server/odoo/models.py", line 5885, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/odoo/odoo-server/odoo/fields.py", line 1106, in __get__
    self.compute_value(recs)
  File "/odoo/odoo-server/odoo/fields.py", line 1265, in compute_value
    records._compute_field_value(self)
  File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 411, in _compute_field_value
    return super()._compute_field_value(field)
  File "/odoo/odoo-server/odoo/models.py", line 4255, in _compute_field_value
    getattr(self, field.compute)()
  File "/odoo/custom/addons/website_axis_helpdesk/models/res_partner.py", line 20, in _compute_ticket_count
    groups = self.env['helpdesk.ticket'].read_group(
  File "/odoo/odoo-server/odoo/models.py", line 2438, in read_group
    result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
  File "/odoo/odoo-server/odoo/models.py", line 2484, in _read_group_raw
    self._apply_ir_rules(query, 'read')
  File "/odoo/odoo-server/odoo/models.py", line 4480, in _apply_ir_rules
    domain = Rule._compute_domain(self._name, mode)
  File "", line 2, in _compute_domain
  File "/odoo/odoo-server/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_rule.py", line 148, in _compute_domain
    dom = safe_eval(rule.domain_force, eval_context) if rule.domain_force else []
  File "/odoo/odoo-server/odoo/tools/safe_eval.py", line 346, in safe_eval
    raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))
Exception

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

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 644, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 302, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: : "Expected singleton: helpdesk.team(5, 3, 4)" while evaluating
"[ '|','&',('partner_id', '=',user.partner_id.id),('user_id','=',user.id),'|',('team_id','=',user.helpdesk_team_ids.id),('team_id','=',False)]"


Odoo Server Error


Imagine profil
Abandonează
Cel mai bun răspuns

Hi, As per the log, the error raises from module website_axis_helpdesk, You can contact the developer of the module to fix the issue.

error from your log:

File "/odoo/custom/addons/website_axis_helpdesk/models/res_partner.py", line 20, in _compute_ticket_count

Imagine profil
Abandonează
Cel mai bun răspuns

How long does it take to solve the problem of separating products by categories?

Imagine profil
Abandonează
Cel mai bun răspuns

From the log i found error in following code:

('team_id','=',user.helpdesk_team_ids.id)

helpdesk_team_ids has more than one team linked, so .id is not correct way.

It should be like 

('team_id','in',user.helpdesk_team_ids.ids)



Imagine profil
Abandonează