i want to print customized error message ,In normal scenario login authentication based on username,password ,active filed, But now i want to check another filed like 'expiry_date' along with username and password . if the expiry_date equals to current_date then need to print "user expired and need to renew the account "along with a link
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
1
Responder
2820
Vistas
Hello,
If you need to add more field in login view you can extend the template
<template id="web.login" name="Login">
And checking is done in py file addons/web/controllers/main.py and method def web_login
¿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 | |
---|---|---|---|---|
|
1
sept 24
|
1426 | ||
|
0
jun 22
|
328 | ||
|
0
jun 21
|
2495 | ||
|
9
jul 20
|
10695 | ||
|
9
mar 20
|
7015 |