OCA / social

Addons concerning odoo's social ERP features and messaging in general
https://odoo-community.org/project/99
GNU Affero General Public License v3.0
159 stars 603 forks source link

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

Open msaeedhp opened 9 months ago

msaeedhp commented 9 months ago

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

TTPBruce commented 7 months ago

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.

trisdoan commented 6 months ago

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

github-actions[bot] commented 3 weeks ago

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.