[FIX] mass_mailing_partner: optimize duplicates check and error message#17
[FIX] mass_mailing_partner: optimize duplicates check and error message#17yajo wants to merge 1 commit into
Conversation
Code is simpler, it benefits from ORM cache (which is helpful because checks are done before flushing), and the error message now tells problematic partners. @moduon MT-13677
14de6ec to
73226f1
Compare
|
Please check OCA/social#1830 that is pending to be fw-ported. |
|
I find it strange that you just removed such feature... Could you elaborate a bit on why? |
|
Because it's a legacy check before Odoo changed the way mass mailing contacts are handled. If you check on runbot, Odoo allows to have several mailing contacts in the same list with the same email. When sending the mailing, it will be sent only once (there's an email deduplication). Artificially prevent these duplicates only complicates the user management and provokes to the user a lot of friction. Examples:
Thus, it's better to remove that artificial restriction. The only trade-off is that the sent mass mailings will be linked to the first contact found, but that's something reasonable. |
|
Thanks for the explanation! Then, indeed that's the proper solution. I can't believe this passed under our radar since v15: odoo/odoo#61467 |
Code is simpler, it benefits from ORM cache (which is helpful because checks are done before flushing), and the error message now tells problematic partners.
@moduon MT-13677