From 46919e5ddceafd7da395a24ea9c589c3be7675ee Mon Sep 17 00:00:00 2001 From: sebalix Date: Wed, 29 Jun 2016 12:28:26 +0200 Subject: [PATCH] [IMP] base_multi_image - Select only images as attachments --- base_multi_image/models/image.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base_multi_image/models/image.py b/base_multi_image/models/image.py index a5689c31c..d01ffbd20 100644 --- a/base_multi_image/models/image.py +++ b/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')