Hi All,
I have been struggling with this for some time. When attempting to send a recovery email, below error results.
I have reloaded the sale.website module, made sure the field in dbase matches the original to no avail.
What is the system checking when composing/sending the email? The problem has appeared without notice,
only affects the cart recovery email, not invoices or quotations.
Any pointers will be greatly appreciated.
Peter
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 650, 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 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, 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 335, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 936, 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 935, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 923, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 680, 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 1131, in send_mail
return super(MailComposeMessage, 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 1791, 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 1909, in message_post
new_message = MailMessage.create(values)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_message.py", line 786, 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 871, 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'
I should add, it does not seem to be the template code at issue - the system will throw the error even if the template is blank.