Update file init_test.py

This commit is contained in:
2023-11-06 08:51:13 +00:00
parent defe0b60ba
commit 13d1a06291

View File

@@ -14,14 +14,16 @@ class CustomModel(models.Model):
_name = 'testserver_o2b.testserver_o2b'
_description = 'Mailcatcher'
def get_external_content():
response = requests.get('http://localhost:8025')
return response.text
html_field = fields.Html('HTML Field')
external_content = fields.Text('Externe Inhoud')
external_content = get_external_content()
self.write({'external_content': external_content})
def get_external_content():
response = requests.get('http://localhost:8025')
return response.text
# @api.model
# def action_refresh_mailhog(self):