Help

0

Error module Helpdesk

Avatar
William MARTINS

Hello Community,


I have an error with Helpdesk Module (de_helpdesk)



Erreur:

Odoo Server Error


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch

    result = self._call_function(**self.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call

    result = self.endpoint(*a, **kw)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__

    return self.method(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1322, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1314, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 387, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/de_helpdesk/models/helpdesk_ticket.py", line 160, in write

    res = super(HelpdeskTicket, self).write(vals)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 332, in write

    track_self._message_track_post_template(changes)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 603, in _message_track_post_template

    self.message_post_with_template(template.id, **post_kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1980, in message_post_with_template

    return composer.send_mail(auto_commit=auto_commit)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 263, in send_mail

    all_mail_values = wizard.get_mail_values(res_ids)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 299, in get_mail_values

    rendered_values = self.render_message(res_ids)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 505, in render_message

    fields=['email_to', 'partner_to', 'email_cc', 'attachment_ids', 'mail_server_id'])

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 538, in generate_email_for_composer

    template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields=fields)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 386, in generate_email

    res_ids_to_templates = self.get_email_template(res_ids)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 321, in get_email_template

    langs = self._render_template(self.lang, self.model, res_ids)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 272, in _render_template

    records = self.env[model].browse(it for it in res_ids if it)  # filter to avoid browsing [None]

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 463, in __getitem__

    return self.registry[model_name]._browse(self, (), ())

  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 177, in __getitem__

    return self.models[model_name]

KeyError: False



Anyone have this error? Or suggest a solution please

Thanks

Avatar
Discard