diff --git a/static/src/js/website_form_editor_tour.js b/static/src/js/website_form_editor_tour.js index 4f65e63a1be..92211dea263 100644 --- a/static/src/js/website_form_editor_tour.js +++ b/static/src/js/website_form_editor_tour.js @@ -605,18 +605,17 @@ odoo.define('website_form_editor.tour', function(require) { run: function () { var mailDef = rpc.query({ model: 'mail.mail', - method: 'search_read', - domain: [ + method: 'search_count', + args: [[ ['email_to', '=', 'test@test.test'], ['body_html', 'like', 'A useless message'], ['body_html', 'like', 'Service : Development Service'], ['body_html', 'like', 'State : Belgium'], ['body_html', 'like', 'Products : Xperia,Wiko Stairway'] - ], - fields: [], + ]], }); - var success = function(model, data) { - if(data.length) { + var success = function(model, count) { + if (count > 0) { $('body').append('
'); } };