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
返信
2802
ビュー
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
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
9月 24
|
1422 | ||
|
0
6月 22
|
328 | ||
|
0
6月 21
|
2495 | ||
|
9
7月 20
|
10690 | ||
|
9
3月 20
|
7014 |