From 49566a406160fca5cef44f864c228ae2e8e3f1fb Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Mon, 20 May 2024 15:08:43 +0700 Subject: new branch api ged --- indoteknik_custom/models/external_api.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 indoteknik_custom/models/external_api.py (limited to 'indoteknik_custom/models/external_api.py') 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') -- cgit v1.2.3