Files
odoo_source/addons/auth_signup/views/webclient_templates.xml
T
Florian Charlier b5f3433adc [IMP] auth_signup,portal,web: welcome external users w/o portal
When portal is not installed and `auth_signup.invitation_scope` is "b2c",
visitors can create an account, leading to a blank page. Still, accounts can be
required for several use cases in apps that do not require portal (such as
survey).

We here add a landing page for users that created an account but have no
requested redirections and cannot be redirected to a customer portal either.

auth_signup_uninvited is also updated in model to be consistent with config
data.

Tests are added to check this behavior.

Task-2762102

Part-of: odoo/odoo#85703
2022-06-14 09:35:57 +02:00

17 lines
634 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="login_successful" inherit_id="web.login_successful">
<xpath expr="//div[hasclass('oe_login_form')]/p" position="before">
<p class="alert alert-success" t-if="account_created" role="status">
Registration successful.
</p>
<!-- Remove parameter from URL, do not show "Account created" if page is refreshed -->
<script defer="defer" type="text/javascript">
window.history.replaceState({}, null, '/web/login_successful');
</script>
</xpath>
</template>
</odoo>