diff --git a/testserver_o2b/models/init_test.py b/testserver_o2b/models/init_test.py index 4c76808..65df2cd 100644 --- a/testserver_o2b/models/init_test.py +++ b/testserver_o2b/models/init_test.py @@ -28,7 +28,7 @@ class CustomModel(models.Model): #raise ValidationError(external_content) # Update the field in a record - record = search([('id', '<', 2)]) # Replace with the actual ID of the record you want to update + record = self.search([('id', '<', 2)]) record.write({'external_content': external_content})