[19.0] mail_composer_cc_bcc: Migration to 19.0#104
[19.0] mail_composer_cc_bcc: Migration to 19.0#104cyrilmanuel wants to merge 38 commits intoOCA:19.0from
Conversation
…ents when no cc or bcc
Currently translated at 83.3% (15 of 18 strings) Translation: social-16.0/social-16.0-mail_composer_cc_bcc Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_composer_cc_bcc/es/
Currently translated at 100.0% (18 of 18 strings) Translation: social-16.0/social-16.0-mail_composer_cc_bcc Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_composer_cc_bcc/es/
Currently translated at 100.0% (18 of 18 strings) Translation: social-16.0/social-16.0-mail_composer_cc_bcc Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_composer_cc_bcc/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: social-17.0/social-17.0-mail_composer_cc_bcc Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_composer_cc_bcc/
Currently translated at 100.0% (17 of 17 strings) Translation: social-17.0/social-17.0-mail_composer_cc_bcc Translate-URL: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_composer_cc_bcc/it/
…onstraint "unique_mail_message_id_res_partner_id_if_set" when adding the same user to CC field that is already set as a follower
### This changes 1. Refactor _generate_template_recipients 2. Fix invalid-email-address for Bcc - In standard, Bcc key in dict message was stripped in https://github.com/odoo/odoo/blob/4394940a09900aa5b42cbc05355880598608d1b6/odoo/addons/base/models/ir_mail_server.py#L676 - Duplicate the key to retain for later assertion
Default behavior in ´mail´ is that _prepare_outgoing_list() returns mails with email_to as a LIST. ´mail_tracking´ is dependent on this behvaior, and it converts LIST to STRING using COMMASPACE. Without the fix in this commit, the combination of ´mail_composer_cc_bcc´ and ´mail_tracking´ will produce email_to with comma between each character.
Currently translated at 100.0% (17 of 17 strings) Translation: mail-18.0/mail-18.0-mail_composer_cc_bcc Translate-URL: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_composer_cc_bcc/it/
73bfe5f to
af5d8f3
Compare
e653654 to
6442af0
Compare
vvrossem
left a comment
There was a problem hiding this comment.
LGTM, I think you can squash [IMP] Update code to match with v19 with [19.0][MIG] mail_composer_cc_bcc: Migration to 19.0.
And while you are at it:
Consider to squash administrative commits (if any) with the previous commit for reducing commit noise. Check https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate for details.
Also, it could be the opportunity to update the .png files (if relevant)
|
This PR has the |
c0cbcf5 to
60c3aa7
Compare
b2a4020 to
3877021
Compare
|
@etobella Can you please merge? |
|
LGTM |
|
When merge? any ETA? thx |
|
/ocabot migration mail_composer_cc_bcc |
| class IrMailServer(models.Model): | ||
| _inherit = "ir.mail_server" | ||
|
|
||
| def _prepare_email_message(self, message, smtp_session): |
There was a problem hiding this comment.
Method was renamed: odoo/odoo@e147c778ebbd0#diff-e46e2629963b0ad64aed7a7b02f49caea5bfacd952b77abcb2954f2437c9222aL668-R646. This implies a missing test.
No description provided.