Files
odoo_source/addons/test_mail_full/security/ir.model.access.csv
T
Thibault Delavallée b1c90b96e1 [FW][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

X-Original-Commit odoo/odoo@987d974ccb

closes odoo/odoo#71178

closes odoo/odoo#71205

X-original-commit: 642816d0a819bf74927ed5aa11b6843cbb97d4df
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-05-25 14:20:08 +00:00

1.1 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_mail_test_sms_allmail.test.sms.allmodel_mail_test_sms0000
3access_mail_test_sms_usermail.test.sms.usermodel_mail_test_smsbase.group_user1111
4access_mail_test_sms_bl_allmail.test.sms.bl.allmodel_mail_test_sms_bl0000
5access_mail_test_sms_bl_usermail.test.sms.bl.usermodel_mail_test_sms_blbase.group_user1111
6access_mail_test_sms_bl_optout_allmail.test.sms.bl.optout.allmodel_mail_test_sms_bl_optout0000
7access_mail_test_sms_bl_optout_usermail.test.sms.bl.optout.usermodel_mail_test_sms_bl_optoutbase.group_user1111
8access_mail_test_sms_partner_allmail.test.sms.partner.allmodel_mail_test_sms_partner0000
9access_mail_test_sms_partner_usermail.test.sms.partner.usermodel_mail_test_sms_partnerbase.group_user1111
10access_mail_test_sms_partner_2many_allmail.test.sms.partner.2many.allmodel_mail_test_sms_partner_2many0000
11access_mail_test_sms_partner_2many_usermail.test.sms.partner.2many.usermodel_mail_test_sms_partner_2manybase.group_user1111