From 577fe5a01f3b782a2a441ad55f3cc721ba2e212c Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 27 Jun 2023 17:05:47 +0700 Subject: add token storage for altama stock api --- indoteknik_custom/models/token_storage.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 indoteknik_custom/models/token_storage.py (limited to 'indoteknik_custom/models/token_storage.py') 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') -- cgit v1.2.3