summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@odoo.com>2018-07-26 23:43:17 +0200
committerOlivier Dony <odo@odoo.com>2018-07-27 00:30:06 +0200
commit4517050572d92b16938a3a49c6cec8b52f49b9bc (patch)
tree3068b057f2fea29173856f2c2564b75d8ffd0d61 /addons/web/static/src/js/fields/basic_fields.js
parente1585c1a75184482da0bbebfa0e6df800299cf94 (diff)
[FIX] event: prefer registration email over partner email
As of rev. ca989b6548e93c25f54684e5569ed3998161acce, the default recipients of a model record are used to filter out blacklisted and duplicate emails during a mass-mailing. This can match both either partner_ids or emails, as returned by `message_get_default_recipients()`. The problem with even registration is that a single partner, sometime anonymous (Public User) can be used to register several participants. We therefore need to override `message_get_default_recipients()` to that intent, similarly to what is done in crm.lead since ca989b6548e93c25f54684e5569ed3998161acce. Without this, mass-mailings sent to free event attendees would never be sent, as they would all appear to be duplicates of each other. Fast-fwd port of 92a224ee3a6aafaf33911dd9a7cac8f53fc413f7
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions