[FIX] web_editor, mass_mailing: use new historyReset io/ resetHistory

344d82c renamed `resetHistory` into `historyReset` but failed to update
some calls to it and rename its equivalent in wysiwyg.js. This commit
corrects the discrepancy.

Part-of: odoo/odoo#75901
This commit is contained in:
Antoine Guenet
2021-09-08 09:03:07 +00:00
parent c0d6f1993d
commit 68d27ec73e
2 changed files with 3 additions and 3 deletions
@@ -527,7 +527,7 @@ var MassMailingFieldHtml = FieldHtml.extend({
// Wait the next tick because some mutation have to be processed by
// the Odoo editor before resetting the history.
setTimeout(() => {
this.wysiwyg.resetHistory();
this.wysiwyg.historyReset();
}, 0);
});
@@ -565,8 +565,8 @@ const Wysiwyg = Widget.extend({
/**
* Reset the history.
*/
resetHistory: function () {
this.odooEditor.resetHistory();
historyReset: function () {
this.odooEditor.historyReset();
},
/**