summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/external_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/external_api.py')
-rw-r--r--indoteknik_custom/models/external_api.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/indoteknik_custom/models/external_api.py b/indoteknik_custom/models/external_api.py
new file mode 100644
index 00000000..ff7281c5
--- /dev/null
+++ b/indoteknik_custom/models/external_api.py
@@ -0,0 +1,21 @@
+from odoo import fields, models, api
+import requests
+import urllib.parse
+from odoo.exceptions import UserError
+import json
+
+
+class AppsStored(models.Model):
+ _name = 'apps.stored'
+
+ app_name = fields.Char(string='App Name')
+ description = fields.Char(string='Description')
+
+
+class TokenStorage(models.Model):
+ # _name = 'token.stored'
+ _inherit = 'token.storage'
+
+ app_id = fields.Many2one('apps.stored', string='App')
+ messages = fields.Char(string='Messages')
+ status = fields.Char(string='Status')