Browse Source

Merge pull request #1088 from LasLabs/bugfix/9.0/gh-1083-add-default-reset-time

[FIX] password_security: Default last write date
pull/999/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
6dfbd2be8e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      password_security/__openerp__.py
  2. 1
      password_security/models/res_users.py

2
password_security/__openerp__.py

@ -5,7 +5,7 @@
'name': 'Password Security',
"summary": "Allow admin to set password security requirements.",
'version': '9.0.1.2.1',
'version': '9.0.1.2.2',
'author': "LasLabs, Odoo Community Association (OCA)",
'category': 'Base',
'depends': [

1
password_security/models/res_users.py

@ -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(

Loading…
Cancel
Save