social
social copied to clipboard
Error when sending an invoice
Module
mail_composer_cc_bcc
Describe the bug
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1783, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying
result = func()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1810, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2014, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 759, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 28, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/account_peppol/wizard/account_move_send.py", line 134, in action_send_and_print
return super().action_send_and_print(force_synchronous=force_synchronous, allow_fallback_pdf=allow_fallback_pdf, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/account/wizard/account_move_send.py", line 732, in action_send_and_print
return self._process_send_and_print(
File "/usr/lib/python3/dist-packages/odoo/addons/account/wizard/account_move_send.py", line 681, in _process_send_and_print
self._hook_if_success(success, from_cron=from_cron, allow_fallback_pdf=allow_fallback_pdf)
File "/usr/lib/python3/dist-packages/odoo/addons/snailmail_account/wizard/account_move_send.py", line 86, in _hook_if_success
super()._hook_if_success(moves_data, from_cron=from_cron, allow_fallback_pdf=allow_fallback_pdf)
File "/usr/lib/python3/dist-packages/odoo/addons/account/wizard/account_move_send.py", line 453, in _hook_if_success
self._send_mails(to_send_mail)
File "/usr/lib/python3/dist-packages/odoo/addons/account/wizard/account_move_send.py", line 535, in _send_mails
self._send_mail(
File "/usr/lib/python3/dist-packages/odoo/addons/account/wizard/account_move_send.py", line 461, in _send_mail
new_message = move\
File "/usr/lib/python3/dist-packages/odoo/addons/sms/models/mail_thread.py", line 135, in message_post
return super().message_post(*args, body=body, message_type=message_type, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/rating/models/mail_thread.py", line 178, in message_post
message = super(MailThread, self).message_post(**kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 2214, in message_post
self._notify_thread(new_message, msg_values, **notif_kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/mail_mobile/models/mail_thread.py", line 26, in _notify_thread
recipients_data = super(MailThread, self)._notify_thread(message, msg_vals=msg_vals, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/sms/models/mail_thread.py", line 222, in _notify_thread
recipients_data = super(MailThread, self)._notify_thread(message, msg_vals=msg_vals, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 3115, in _notify_thread
self._notify_thread_by_email(message, recipients_data, msg_vals=msg_vals, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 3233, in _notify_thread_by_email
for _lang, render_values, recipients_group in self._notify_get_classified_recipients_iterator(
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 3377, in _notify_get_classified_recipients_iterator
recipients_groups_list = record_wlang._notify_get_recipients_classify(
TypeError: MailThread._notify_get_recipients_classify() got multiple values for argument 'msg_vals'
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://erpqa.intern.noscendo.cloud/web/assets/362fbb2/web.assets_web.min.js:2888:163)
at XMLHttpRequest.<anonymous> (https://erpqa.intern.noscendo.cloud/web/assets/362fbb2/web.assets_web.min.js:2892:13)
To Reproduce
Affected versions:
Steps to reproduce the behavior:
- Go to Settings > Technical > Email Templates
- Set the "BCC" to '[email protected]'
- Open an Invoice in the Accounting module and try to send it via mail.
Expected behavior The mail is being sent to the recepient and the bcc.
Additional context Ubuntu 22.04.5 Python 3.10.12 Email CC and BCC 17.0.16.0.2
I remembered it was fixed as well in https://github.com/OCA/social/pull/1494, will you please review it?
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.