summaryrefslogtreecommitdiff
path: root/addons/website_slides_survey
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2021-05-06 09:15:28 +0000
committerThibault Delavallée <tde@odoo.com>2021-05-21 16:45:37 +0000
commit987d974ccb8c75c6eca899adb5be50fe48c8eb2c (patch)
treebd1ac99d73bfc68c5eb33145841ff03dac055335 /addons/website_slides_survey
parent3ba3054f0aabd7307545712519594e9273dc7f28 (diff)
[FIX] sale, mass_mailing_sms, test_mail_full: correctly support partner-only records
When performing an sms marketing on a model having only a ``partner_id`` field available (aka no ``phone`` or ``mobile``) it crashes due to seen list computation (aka already contacted recipients). This is due to an SQL query not taking into account those models as it works only for those with a phone field. We fix it as done in ``mass_mailìng`` app, aka fetching information on the related partner if available. Some tests for models using a 2many relationships towards recipients are added. Note that this kind of model does not really support complete SMS notification, as only the first found partner is notified. Mass SMS on this kind of model is currently not possible as seen list is not supported. There is no standard use case of this in Odoo codebase. Correctly support sms marketing on sale model by defining the necessary methods. As sale order has only a partner_id field available we have to correctly override phone related methods for SMS. LINKS Task ID-2431217 COM PR odoo/odoo#71140 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides_survey')
0 files changed, 0 insertions, 0 deletions