[IMP] mail: notify user after subscription preference changes

Currently, the user doesn't receive any feedback or notification when updating
his subscription preferences. Therefore, he might be prompted to open the
subscription modal again to double-check that his modifications were correctly
applied or not.

With this commit, We are now displaying screen notification with success message
after successfully applying the changes.

Task : 2445481

closes odoo/odoo#65957

X-original-commit: 95aebcbc8051f71762724149f6b20f3501485cdd
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
Dhruv Patel
2021-02-11 12:17:45 +00:00
parent c56b6f6e78
commit bbeacef466
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -6983,3 +6983,10 @@ msgstr ""
#: model:ir.model.fields.selection,name:mail.selection__mail_activity_type__delay_unit__weeks
msgid "weeks"
msgstr ""
#. module: mail
#. openerp-web
#: code:addons/mail/static/src/models/follower/follower.js:0
#, python-format
msgid "The subscription preferences were successfully applied."
msgstr ""
@@ -158,6 +158,10 @@ function factory(dependencies) {
args: [[this.followedThread.id]],
kwargs,
}));
this.env.services['notification'].notify({
type: 'success',
message: this.env._t("The subscription preferences were successfully applied."),
});
}
this.closeSubtypes();
}