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
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
1
Відповісти
2801
Переглядів
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
1
вер. 24
|
1422 | ||
|
0
черв. 22
|
328 | ||
|
0
черв. 21
|
2495 | ||
|
9
лип. 20
|
10690 | ||
|
9
бер. 20
|
7014 |