Update file init_test.py
This commit is contained in:
@@ -24,9 +24,13 @@ class CustomModel(models.Model):
|
|||||||
return response.text
|
return response.text
|
||||||
|
|
||||||
external_content = get_external_content()
|
external_content = get_external_content()
|
||||||
self.write({'external_content': external_content})
|
#self.write({'external_content': external_content})
|
||||||
#raise ValidationError(external_content)
|
#raise ValidationError(external_content)
|
||||||
|
|
||||||
|
# Update the field in a record
|
||||||
|
record = self.search([('id', '=', 1)]) # Replace <record_id> with the actual ID of the record you want to update
|
||||||
|
record.write({'external_content': external_content})
|
||||||
|
|
||||||
|
|
||||||
# @api.model
|
# @api.model
|
||||||
# def action_refresh_mailhog(self):
|
# def action_refresh_mailhog(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user