Files
odoo_source/addons/sms/security/ir.model.access.csv
T
Florian Charlier bd5a68a1a7 [IMP] mail, mass_mailing, sms: process delivery reports
Also impacts mass_mailing_sms, test_mail_sms,
test_mass_mailing

This PR adds support to receive sms delivery reports.

Before this PR, an SMS was considered 'sent' when successfully
handled by the third party. The user couldn't know if/when an
SMS was actually sent for delivery or delivered to the
recipient's device.
This was similar to the behavior for emails as delivery reports
are not commonly used (and not supported in Odoo).

With this work, the SMS `pending` state is introduced in mail,
mass_mailing, sms and mass_mailing_sms contexts although only fully
used in the latter two modules (+tests of course).

Because of the huge cost related to upgrading very large existing
databases, the following compromises were made:

1. An email and sms notification/trace SENT means DELIVERED.
  Those that are sent but NOT DELIVERED are PENDING.
  The difference between email and sms traces reinforced with this PR
  is that an email sent will be counted as "sent" ~ "delivered"
  unless an error is returned for emails while for SMS it can only be
  reached if a delivery report is received.
2. The Link between an SMS uuid (shared with trusted parties) and
  the tracking records (notifications or traces) is done via an
  explicit relationship table (sms_tracker) instead of via a new field.
  This however allowed to nicely concentrate the state update logic.

A `process` state is added to represent an intermediate
step in the sending process, such as held at IAP for SMS.

A few adjustments are also included to update for IAP api v3.
Also, adapts and includes new tests.

Task-2560666

Part-of: odoo/odoo#133392
2023-10-24 12:38:13 +00:00

1.1 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_sms_sms_allaccess.sms.sms.allmodel_sms_sms0000
3access_sms_sms_systemaccess.sms.sms.systemmodel_sms_smsbase.group_system1111
4access_sms_template_allaccess.sms.template.allmodel_sms_template0000
5access_sms_template_useraccess.sms.template.usermodel_sms_templatebase.group_user1000
6access_sms_template_systemaccess.sms.template.systemmodel_sms_templatebase.group_system1111
7access_sms_tracker_allaccess.sms.tracker.allmodel_sms_tracker0000
8access_sms_tracker_systemaccess.sms.tracker.systemmodel_sms_trackerbase.group_system1111
9access_sms_composeraccess.sms.composermodel_sms_composerbase.group_user1110
10access_sms_resend_recipientaccess.sms.resend.recipientmodel_sms_resend_recipientbase.group_user1110
11access_sms_resendaccess.sms.resendmodel_sms_resendbase.group_user1110
12access_sms_template_previewaccess.sms.template.previewmodel_sms_template_previewbase.group_user1110
13access_sms_template_resetaccess.sms.template.resetmodel_sms_template_resetmail.group_mail_template_editor1111