Update testserver_o2b/models/init_test.py

This commit is contained in:
2024-01-12 15:14:18 +00:00
parent 4727d65c44
commit 51502abe2a

View File

@@ -7,23 +7,6 @@ _logger = logging.getLogger(__name__)
import os
import uuid
import odoo
import requests
from odoo.exceptions import ValidationError
class CustomModel(models.Model):
_name = 'testserver_o2b.testserver_o2b'
_description = 'Mailcatcher'
html_field = fields.Html('HTML Field')
external_content = fields.Char('Externe Inhoud')
def get_external_content():
response = requests.get('http://localhost:8025')
return response.text
class IrLogging(models.Model):
_inherit = 'ir.logging'