social icon indicating copy to clipboard operation
social copied to clipboard

[16.0] mail_composer_cc_bcc: setting Cc or Bcc causes an unwanted mail to be sent

Open msaeedhp opened this issue 2 years ago • 2 comments

Module

mail_composer_cc_bcc

Describe the bug

When using the mail_composer_cc_bcc module, in the Purchase module and after sending a Request for Quotation via email to the vendor, if you provide any Cc or Bcc email address, an additional email is sent notifying Cc and Bcc recipients about the status change (RFQ to RFQ Sent).

To Reproduce

Affected versions: 16.0.1.0.0

Steps to reproduce the behavior:

  1. Install the mail_composer_cc_bcc module.
  2. In the Purchase module, create a new Request for Quotation.
  3. Choose a vendor, save, and click on SEND BY EMAIL.
  4. Enter an email in the Cc or Bcc field or both.

image

  1. Click on SEND

Expected behavior An email should have been sent to the recipient(s) and email addresses provided in Cc and Bcc mail about the details of the RFQ (request for quotation) without any additional emails being sent. But as you can see in the image below, an additional email was sent to Cc and Bcc emails notifying them about the change in RFQ status, which is not the expected behavior.

image

image

Additional context Odoo version 16 Python version 3.10

msaeedhp avatar Dec 05 '23 09:12 msaeedhp

Also an issue in 15.0

I think "partner_bcc_ids" and "partner_cc_ids" context values need to be cleared at some point after the e-mail has been created/sent.

TTPBruce avatar Feb 13 '24 16:02 TTPBruce

Thanks guys for your report, fixed in 15.0 and 16.0, would you mind reviewing?

trisdoan avatar Feb 19 '24 04:02 trisdoan

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.

github-actions[bot] avatar Aug 18 '24 12:08 github-actions[bot]