diff --git a/base_multi_image/models/image.py b/base_multi_image/models/image.py index 0da993558..dfb5501d3 100644 --- a/base_multi_image/models/image.py +++ b/base_multi_image/models/image.py @@ -190,7 +190,7 @@ class Image(models.Model): _('You must provide an attached file for the image.')) @api.constrains('storage', 'attachment_id') - def _check_store(self): + def _check_attachment_id(self): if self.storage == 'filestore' and not self.attachment_id: raise exceptions.ValidationError( _('You must provide an attachment for the image.'))