[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
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.
|
When merge? |
|
@giusybloomup When the code is fixed |
NICO-SOLUTIONS
left a comment
There was a problem hiding this comment.
Reviewing prepare_email_message_ override and updated hash
| class IrMailServer(models.Model): | ||
| _inherit = "ir.mail_server" | ||
|
|
||
| def _prepare_email_message(self, message, smtp_session): |
There was a problem hiding this comment.
| def _prepare_email_message(self, message, smtp_session): | |
| def _prepare_email_message__(self, message, smtp_session): |
There was a problem hiding this comment.
An extra double underscore was added to the method
| ) | ||
|
|
||
| VALID_HASHES = { | ||
| "mail.composer:_compute_partner_ids": ["4e49f0d6c53f41ac24b02176e97b600a"], |
There was a problem hiding this comment.
| "mail.composer:_compute_partner_ids": ["4e49f0d6c53f41ac24b02176e97b600a"], | |
| "mail.composer:_compute_partner_ids": ["c3903ab78bf2e5d9aba078ac2689d974"], |
There was a problem hiding this comment.
Updated hash to match the current upstream _compute_partner_ids
| if x_odoo_bcc_value: | ||
| message["Bcc"] = x_odoo_bcc_value | ||
|
|
||
| smtp_from, smtp_to_list, message = super()._prepare_email_message( |
There was a problem hiding this comment.
| smtp_from, smtp_to_list, message = super()._prepare_email_message( | |
| smtp_from, smtp_to_list, message = super()._prepare_email_message__( |
There was a problem hiding this comment.
Call updated prepare_email_message_ method with extra double underscore

No description provided.