[IMP] base_multi_image - Select only images as attachments
parent
7e17b85e9a
commit
dfe256d5eb
|
@ -40,7 +40,8 @@ class Image(models.Model):
|
||||||
readonly=True)
|
readonly=True)
|
||||||
attachment_id = fields.Many2one(
|
attachment_id = fields.Many2one(
|
||||||
'ir.attachment',
|
'ir.attachment',
|
||||||
string='Attachment')
|
string='Attachment',
|
||||||
|
domain="[('index_content', '=', 'image')]")
|
||||||
file_db_store = fields.Binary(
|
file_db_store = fields.Binary(
|
||||||
'Image stored in database',
|
'Image stored in database',
|
||||||
filters='*.png,*.jpg,*.gif')
|
filters='*.png,*.jpg,*.gif')
|
||||||
|
|
Loading…
Reference in New Issue