I am trying to use the front desk app in odoo. When I enter a kiosk a page pops up with a check in button. When the button is pressed, the visitor form shows up. I would like to know how to alter the welcome page button to send me to a custom page first for a non disclosure agreement.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
Hi,
Yes, we can customize the button function by updating the 'frontdesk.WelcomePage' template. Inside this template, you'll find a statement like:
<div class="btn btn-light fs-3 py-2 px-5 mt-3" t-on-click="() => props.showScreen('VisitorForm'
The showScreen function accepts a string argument representing the name of the screen in the 'frontdesk_screens' category. By updating this argument, you can show the corresponding Screens. Additionally, you can create a new Screen by adding a Component
to the 'frontdesk_screens' category.
For example, if you've created a new screen named 'CustomScreen' and inherit the 'frontdesk.WelcomePage' template, and change the div like this using xpath and position as replace:
<div class="btn btn-light fs-3 py-2 px-5 mt-3" t-on-click="() => props.showScreen('
This will redirect to the custom page when clicked.
Hope it helps
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
oct 22
|
1707 | ||
|
3
may 25
|
2846 | ||
|
3
oct 23
|
4673 | ||
|
5
mar 25
|
2485 | ||
|
1
feb 25
|
1062 |