mirror of
https://github.com/bringout/oca-server-auth.git
synced 2026-04-21 16:52:03 +02:00
25 lines
636 B
Python
25 lines
636 B
Python
# Copyright (C) 2024 Akretion (<http://www.akretion.com>).
|
|
# @author Kévin Roche <kevin.roche@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ImpersonateLog(models.Model):
|
|
_name = "impersonate.log"
|
|
_description = "Impersonate Logs"
|
|
|
|
user_id = fields.Many2one(
|
|
comodel_name="res.users",
|
|
)
|
|
impersonated_partner_id = fields.Many2one(
|
|
comodel_name="res.partner",
|
|
string="Logged as",
|
|
)
|
|
date_start = fields.Datetime(
|
|
string="Start Date",
|
|
)
|
|
date_end = fields.Datetime(
|
|
string="End Date",
|
|
)
|