Skip the confirmation step when wanting to get rid of a notification for emails, sms or letters that were not sent. Technical: - All 3 wizards to confirm the discarding of the notification have been removed (the ones for mail, sms and letter) have been removed - The method to discard notification has been centralized in MailThread (notify_cancel_by_type in addons/mail/models/mail_thread.py) - This centralization has been done as well on the client code as the same server code is called whether it is a mail, a sms or a letter (in addons/mail/static/src/models/notification_group/notification_group.js) - Existing front and back test have been adapted - A test of notify_cancel_by_type for mail has been added (addons/test_mail/tests/test_mail_management.py) - add missing author_id in mail_notification demo data Task-2752190 closes odoo/odoo#84452 Related: odoo/upgrade#3246 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
580 B
580 B
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_snailmail_letter_user | snailmail.letter.user | model_snailmail_letter | base.group_user | 1 | 1 | 1 | 0 |
| 3 | access_snailmail_letter_system | snailmail.letter.system | model_snailmail_letter | base.group_system | 1 | 1 | 1 | 1 |
| 4 | access_snailmail_letter_format_error | access.snailmail.letter.format.error | model_snailmail_letter_format_error | base.group_user | 1 | 1 | 1 | 0 |
| 5 | access_snailmail_letter_missing_required_fields | access.snailmail.letter.missing.required.fields | model_snailmail_letter_missing_required_fields | base.group_user | 1 | 1 | 1 | 0 |