Browse Source

[IMP] base_multi_image - Select only images as attachments

12.0-mig-module_prototyper_last
sebalix 8 years ago
committed by Vladislav Shepilov
parent
commit
46919e5ddc
  1. 3
      base_multi_image/models/image.py

3
base_multi_image/models/image.py

@ -40,7 +40,8 @@ class Image(models.Model):
readonly=True)
attachment_id = fields.Many2one(
'ir.attachment',
string='Attachment')
string='Attachment',
domain="[('index_content', '=', 'image')]")
file_db_store = fields.Binary(
'Image stored in database',
filters='*.png,*.jpg,*.gif')

Loading…
Cancel
Save