Browse Source
Merge pull request #1084 from LasLabs/bugfix/10.0/gh-1083-add-default-reset-time
[FIX] password_security: Default last write date
pull/1090/head
Dave Lasley
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
password_security/__manifest__.py
-
password_security/models/res_users.py
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
'name': 'Password Security', |
|
|
|
"summary": "Allow admin to set password security requirements.", |
|
|
|
'version': '10.0.1.1.1', |
|
|
|
'version': '10.0.1.1.2', |
|
|
|
'author': "LasLabs, Odoo Community Association (OCA)", |
|
|
|
'category': 'Base', |
|
|
|
'depends': [ |
|
|
|
|
|
@ -21,6 +21,7 @@ class ResUsers(models.Model): |
|
|
|
|
|
|
|
password_write_date = fields.Datetime( |
|
|
|
'Last password update', |
|
|
|
default=fields.Datetime.now, |
|
|
|
readonly=True, |
|
|
|
) |
|
|
|
password_history_ids = fields.One2many( |
|
|
|