Update file init_test.py
This commit is contained in:
@@ -14,12 +14,12 @@ class CustomModel(models.Model):
|
|||||||
_name = 'testserver_o2b.testserver_o2b'
|
_name = 'testserver_o2b.testserver_o2b'
|
||||||
_description = 'Mailcatcher'
|
_description = 'Mailcatcher'
|
||||||
|
|
||||||
#def get_external_content():
|
|
||||||
# response = requests.get('http://localhost:8025')
|
|
||||||
# return response.text
|
|
||||||
|
|
||||||
html_field = fields.Html('HTML Field')
|
html_field = fields.Html('HTML Field')
|
||||||
|
|
||||||
|
def get_external_content():
|
||||||
|
response = requests.get('http://localhost:8025')
|
||||||
|
return response.text
|
||||||
|
|
||||||
#external_content = fields.Text('Externe Inhoud')
|
#external_content = fields.Text('Externe Inhoud')
|
||||||
#external_content = get_external_content()
|
#external_content = get_external_content()
|
||||||
#self.write({'external_content': external_content})
|
#self.write({'external_content': external_content})
|
||||||
|
|||||||
Reference in New Issue
Block a user