Update file init_test.py
This commit is contained in:
@@ -28,7 +28,7 @@ class CustomModel(models.Model):
|
|||||||
#raise ValidationError(external_content)
|
#raise ValidationError(external_content)
|
||||||
|
|
||||||
# Update the field in a record
|
# Update the field in a record
|
||||||
record = search([('id', '<', 2)]) # Replace <record_id> with the actual ID of the record you want to update
|
record = self.search([('id', '<', 2)])
|
||||||
record.write({'external_content': external_content})
|
record.write({'external_content': external_content})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user