[FIX] website_mass_mailing: missing requires
`mass_mailing.unsubscribe` depends on 1. `web.ajax`, as it uses `ajax.jsonRpc` 2. `web_editor.base`, to explicitely wait for all dependencies to be loaded, so the DOM can contain `o_unsubscribe_form` opw-654396
This commit is contained in:
@@ -124,6 +124,8 @@ animation.registry.newsletter_popup = animation.Class.extend({
|
||||
|
||||
|
||||
odoo.define('mass_mailing.unsubscribe', function (require) {
|
||||
var ajax = require('web.ajax');
|
||||
require('web_editor.base'); // wait for implicit dependencies to load
|
||||
|
||||
if(!$('.o_unsubscribe_form').length) {
|
||||
return $.Deferred().reject("DOM doesn't contain '.o_unsubscribe_form'");
|
||||
|
||||
Reference in New Issue
Block a user