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

'account.move.send' object has no attribute '_get_default_mail_partner_cc_ids' #1535

Open
josopu opened this issue Jan 5, 2025 · 2 comments
Labels

Comments

@josopu
Copy link

josopu commented Jan 5, 2025

Module

mail_composer_cc_bcc_account

Describe the bug

Cannot send emails.

To Reproduce

Affected versions: 17.0

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 221, in _dispatch
    result = endpoint(**request.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 757, 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 142, 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 794, 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 719, in _process_send_and_print
    moves_data = {
  File "/usr/lib/python3/dist-packages/odoo/addons/account/wizard/account_move_send.py", line 722, in <dictcomp>
    **self._get_mail_move_values(move, wizard),
  File "/mnt/extra-addons/social/mail_composer_cc_bcc_account/wizards/account_move_send.py", line 92, in _get_mail_move_values
    or self._get_default_mail_partner_cc_ids(move, mail_template),
AttributeError: 'account.move.send' object has no attribute '_get_default_mail_partner_cc_ids'
@josopu josopu added the bug label Jan 5, 2025
@DorianMAG
Copy link
Contributor

DorianMAG commented Jan 10, 2025

Hello,
indeed I encounter the same problem in version 17.
The method "_get_default_mail_partner_cc_ids" does not exist or no longer exists.
Probably fix here, need review:
#1450
Regards,

@josopu
Copy link
Author

josopu commented Jan 10, 2025

So as of right now, there's no way to add a BCC on odoo version 17.0 with this module, right?

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

2 participants