Helpdesk

Internal error

Closed
Avatar
Gvals

The question has been closed 原由 not enough information given to provide help

by
Ermin Trevisan
2021年05月15日 11时32分13秒

Hello,


I have Odoo 11.0 on Ubuntu 18.04.


Since yesterday, when i want to send by email a Sales Order from Odoo. I have the following error :


Traceback (most recent call last):

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

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

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

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

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

    raise value

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

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

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

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

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

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

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

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

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

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

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

    response = f(*args, **kw)

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

    action = self._call_kw(model, method, args, {})

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

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

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

    return call_kw_multi(method, model, args, kwargs)

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

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

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

    return self.send_mail()

  File "/usr/lib/python3/dist-packages/odoo/addons/website_sale/models/mail_compose_message.py", line 21, in send_mail

    return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit)

  File "/usr/lib/python3/dist-packages/odoo/addons/purchase/models/purchase.py", line 1168, in send_mail

    return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit)

  File "/usr/lib/python3/dist-packages/odoo/addons/l10n_ch/models/mail_compose_message.py", line 25, in send_mail

    return super(MailComposer, self).send_mail(auto_commit=auto_commit)

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

    return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit)

  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_invoice.py", line 1871, in send_mail

    return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit)

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

    **mail_values)

  File "/usr/lib/python3/dist-packages/odoo/addons/rating/models/mail_thread.py", line 14, in message_post

    message = super(MailThread, self).message_post(body=body, subject=subject, message_type=message_type, subtype=subtype, parent_id=parent_id, attachments=attachments, content_subtype=content_subtype, **kwargs)

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

    new_message = MailMessage.create(values)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 795, in create

    user_signature=self.env.context.get('mail_notify_user_signature', True))

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 883, in _notify

    ])._notify(self, force_send=force_send, send_after_commit=send_after_commit, user_signature=user_signature)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/res_partner.py", line 190, in _notify

    new_emails, new_recipients_nbr = self._notify_send(fol_values['body'], fol_values['subject'], recipient_template_values['followers'], **base_mail_values)

KeyError: 'body'

Thanks in advance for your help.



Gilles

1 备注
头像
丢弃
Avatar
Niyas Raphy
-

is this solved ? if not try with latest source code, also make sure that custom modules are not causing the trouble

1 答案