Hi, I am running a Odoo10 community. I get an error when I try to send emails to contacts. Sending online proposals work though. Heres the traceback. Any tips on what I can do to correct it?
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 638, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo/odoo-server/odoo/http.py", line 675, in dispatch result = self._call_function(**self.params) File "/odoo/odoo-server/odoo/http.py", line 331, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo/odoo-server/odoo/service/model.py", line 119, in wrapper return f(dbname, *args, **kwargs) File "/odoo/odoo-server/odoo/http.py", line 324, in checked_call result = self.endpoint(*a, **kw) File "/odoo/odoo-server/odoo/http.py", line 933, in __call__ return self.method(*args, **kw) File "/odoo/odoo-server/odoo/http.py", line 504, in response_wrap response = f(*args, **kw) File "/odoo/odoo-server/addons/web/controllers/main.py", line 862, in call_kw return self._call_kw(model, method, args, kwargs) File "/odoo/odoo-server/addons/web/controllers/main.py", line 854, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/odoo/odoo-server/odoo/api.py", line 681, in call_kw return call_kw_multi(method, model, args, kwargs) File "/odoo/odoo-server/odoo/api.py", line 672, in call_kw_multi result = method(recs, *args, **kwargs) File "/odoo/odoo-server/addons/mail/models/mail_thread.py", line 1878, in message_post new_message = MailMessage.create(values) File "/odoo/odoo-server/addons/mail/models/mail_message.py", line 722, in create user_signature=self.env.context.get('mail_notify_user_signature', True)) File "/odoo/odoo-server/addons/mail/models/mail_message.py", line 790, in _notify partners._notify(self, force_send=force_send, send_after_commit=send_after_commit, user_signature=user_signature) File "/odoo/odoo-server/addons/mail/models/res_partner.py", line 156, in _notify ('notify_email', '!=', 'none')])._notify_by_email(message, force_send=force_send, send_after_commit=send_after_commit, user_signature=user_signature) File "/odoo/odoo-server/addons/mail/models/res_partner.py", line 201, in _notify_by_email new_emails, new_recipients_nbr = self._notify_send(fol_values['body'], fol_values['subject'], recipient_template_values['followers'], **base_mail_values)KeyError: 'body'
Thank you @mahmoud. I figured it out. It was a faulty "string" in the email template config. I actually removed the existing config, saved, restarted and added the exact config, rebooted (for some reason) and it magically worked.