diff --git a/addons/crm_iap_lead/static/src/js/leads_tree_generate_leads.js b/addons/crm_iap_lead/static/src/js/leads_tree_generate_leads.js index 27059c28893..e60d8deb9a9 100644 --- a/addons/crm_iap_lead/static/src/js/leads_tree_generate_leads.js +++ b/addons/crm_iap_lead/static/src/js/leads_tree_generate_leads.js @@ -34,7 +34,7 @@ odoo.define('crm.leads.tree', function (require) { self.buttons_template = 'LeadMiningRequestListView.buttons'; } }); - return $.when(this._super.apply(this, arguments), ready); + return Promise.all([this._super.apply(this, arguments), ready]); }, renderButtons: function () { this._super.apply(this, arguments); @@ -57,7 +57,7 @@ odoo.define('crm.leads.tree', function (require) { self.buttons_template = 'LeadMiningRequestKanbanView.buttons'; } }); - return $.when(this._super.apply(this, arguments), ready); + return Promise.all([this._super.apply(this, arguments), ready]); }, renderButtons: function () { this._super.apply(this, arguments);