-
-
Notifications
You must be signed in to change notification settings - Fork 509
Expand file tree
/
Copy pathpost_install.py
More file actions
18 lines (17 loc) · 735 Bytes
/
post_install.py
File metadata and controls
18 lines (17 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2024 Akretion France (https://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# to understand why we created this init script, read the comment
# in res_config_settings.py
def init_config_parameters(env):
defaultvalues = {
"password_security.expiration_days": 60,
"password_security.minimum_hours": 24,
"password_security.history": 30,
"password_security.lower": 1,
"password_security.upper": 1,
"password_security.numeric": 1,
"password_security.special": 1,
}
for key, value in defaultvalues.items():
env["ir.config_parameter"].set_param(key, value)