From 6c6db64bf46fcdcf6000b84dc04653bda0ca6880 Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Wed, 6 Mar 2019 14:01:58 +0100 Subject: [PATCH] [REF] crm_iap_lead: adapt code after jQuery update Part of task 1896658 Co-authored-by: Aaron Bohy Co-authored-by: Christophe Matthieu Co-authored-by: Mathieu Duckerts-Antoine Co-authored-by: David Monjoie Co-authored-by: Martin Geubelle Co-authored-by: svs-odoo Co-authored-by: Vincent Schippefilt --- .../crm_iap_lead/static/src/js/leads_tree_generate_leads.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);