summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/external_api.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-05-22 02:15:56 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-05-22 02:15:56 +0000
commitad1325d80785f236a32bff2f2645fe8c85c50efb (patch)
tree85d8772e1af6ef37a0bfe3bc19064258b7bea39d /indoteknik_custom/models/external_api.py
parentf6c324302fb2a6490c9c95836887e2c58d684e86 (diff)
parent4f5594be8d73f88fbb42671525d0d2c6ed977abe (diff)
Merged in production (pull request #143)
Production
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')