diff --git a/addons/auth_totp_portal/static/src/js/totp_frontend.js b/addons/auth_totp_portal/static/src/js/totp_frontend.js index b4644fc77cd..cb249e63d65 100644 --- a/addons/auth_totp_portal/static/src/js/totp_frontend.js +++ b/addons/auth_totp_portal/static/src/js/totp_frontend.js @@ -183,7 +183,6 @@ publicWidget.registry.TOTPButton = publicWidget.Widget.extend({ document.getElementById('totp_wizard_view').textContent, 'application/xhtml+xml' ); - console.log(doc); const xmlBody = doc.querySelector('sheet *'); const [body, , codeInput] = fixupViewBody(xmlBody, record); diff --git a/addons/portal/static/src/js/portal.js b/addons/portal/static/src/js/portal.js index f938521b265..7499a798851 100644 --- a/addons/portal/static/src/js/portal.js +++ b/addons/portal/static/src/js/portal.js @@ -163,8 +163,6 @@ publicWidget.registry.portalSearchPanel = publicWidget.Widget.extend({ }, }); -const tmpl = ajax.loadXML('/portal/static/src/xml/portal_security.xml', qweb); - /** * Wraps an RPC call in a check for the result being an identity check action * descriptor. If no such result is found, just returns the wrapped promise's @@ -184,7 +182,7 @@ function handleCheckIdentity(rpc, wrapped) { return r; } const check_id = r.res_id; - return tmpl.then(() => new Promise((resolve, reject) => { + return ajax.loadXML('/portal/static/src/xml/portal_security.xml', qweb).then(() => new Promise((resolve, reject) => { const d = new Dialog(null, { title: _t("Security Control"), $content: qweb.render('portal.identitycheck'),