summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/token_storage.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-06-27 17:05:47 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-06-27 17:05:47 +0700
commit577fe5a01f3b782a2a441ad55f3cc721ba2e212c (patch)
tree359fdcaadc4a9af6a0105c549f5bec40abaa615a /indoteknik_custom/models/token_storage.py
parent57c571c40de1acfdcf23132782ec8c7fcbb8c6bd (diff)
add token storage for altama stock api
Diffstat (limited to 'indoteknik_custom/models/token_storage.py')
-rw-r--r--indoteknik_custom/models/token_storage.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/indoteknik_custom/models/token_storage.py b/indoteknik_custom/models/token_storage.py
new file mode 100644
index 00000000..0eef7f20
--- /dev/null
+++ b/indoteknik_custom/models/token_storage.py
@@ -0,0 +1,9 @@
+from odoo import fields, models
+
+class TokenStorage(models.Model):
+
+ _name = 'token.storage'
+ source = fields.Char(string='Source')
+ access_token = fields.Char(string='Access Token')
+ expires_in = fields.Integer(string='Expires In')
+ expired_date = fields.Datetime(string='Expired Date')