Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sending an invoice #1590

Open
itsmichaelk opened this issue Feb 12, 2025 · 0 comments
Open

Error when sending an invoice #1590

itsmichaelk opened this issue Feb 12, 2025 · 0 comments
Labels

Comments

@itsmichaelk
Copy link

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:

  1. Go to Settings > Technical > Email Templates
  2. Set the "BCC" to '[email protected]'
  3. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant