You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
642 B
26 lines
642 B
# -*- coding: utf-8 -*-
|
|
# Copyright 2016 LasLabs Inc.
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResUsersPassHistory(models.Model):
|
|
_name = 'res.users.pass.history'
|
|
_description = 'Res Users Password History'
|
|
|
|
_order = 'user_id, date desc'
|
|
|
|
user_id = fields.Many2one(
|
|
string='User',
|
|
comodel_name='res.users',
|
|
ondelete='cascade',
|
|
index=True,
|
|
)
|
|
password_crypt = fields.Char(
|
|
string='Encrypted Password',
|
|
)
|
|
date = fields.Datetime(
|
|
default=lambda s: fields.Datetime.now(),
|
|
index=True,
|
|
)
|