Update testserver_o2b/models/init_test.py
This commit is contained in:
@@ -7,23 +7,6 @@ _logger = logging.getLogger(__name__)
|
|||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
import odoo
|
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):
|
class IrLogging(models.Model):
|
||||||
_inherit = 'ir.logging'
|
_inherit = 'ir.logging'
|
||||||
|
|||||||
Reference in New Issue
Block a user