summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/token_log.py
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-27 09:54:01 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-27 09:54:01 +0700
commit3e08828c8e0238478a9b2575aa0705ab89124050 (patch)
tree441834e5b1b19dda0b58d2d67936686aa3771cf8 /indoteknik_custom/models/token_log.py
parent687e462aaf3112d3b8a7dcecfc8c50582c531798 (diff)
parent523491c16ccac66b2464654bdd1969b444459466 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models/token_log.py')
-rw-r--r--indoteknik_custom/models/token_log.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/indoteknik_custom/models/token_log.py b/indoteknik_custom/models/token_log.py
new file mode 100644
index 00000000..fdc0c03e
--- /dev/null
+++ b/indoteknik_custom/models/token_log.py
@@ -0,0 +1,17 @@
+from odoo import models, fields, api
+
+class FixcoTokenLog(models.Model):
+ _name = 'token.log'
+ _description = 'Log Token Fixco'
+ _order = 'create_date desc'
+
+ token = fields.Text(string="Access Token", readonly=True)
+ expires_at = fields.Datetime(string="Expires At", readonly=True)
+ created_at = fields.Datetime(string="Created At", default=lambda self: fields.Datetime.now(), readonly=True)
+ created_by = fields.Many2one('res.users', string="Generated By", readonly=True)
+ source = fields.Selection([
+ ('manual', 'Manual Request'),
+ ('auto', 'Auto Refresh'),
+ ], string="Token Source", default='auto', readonly=True)
+ token_from = fields.Char(string="From", readonly=True)
+ is_active = fields.Boolean("Active", default=True) \ No newline at end of file