diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-05-20 15:08:43 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-05-20 15:08:43 +0700 |
| commit | 49566a406160fca5cef44f864c228ae2e8e3f1fb (patch) | |
| tree | face02a49fc95b4b9c24e5e9ce05c46c4e6dee46 /indoteknik_custom/models/external_api.py | |
| parent | 9c7e20e61ccc8509ff3d6a658505d5d97f6219d5 (diff) | |
new branch api ged
Diffstat (limited to 'indoteknik_custom/models/external_api.py')
| -rw-r--r-- | indoteknik_custom/models/external_api.py | 21 |
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') |
