[#037989] ONLY FOR 4.0. Remove domain on images field, because there is a bug in O2M fields get function that not has in consideration the domain

This commit is contained in:
Bernat Brunet Torruella 2019-07-16 16:40:03 +02:00
parent 7a8802e6c4
commit d727b9075b
1 changed files with 1 additions and 3 deletions

View File

@ -18,9 +18,7 @@ class Template:
__name__ = 'product.template'
images_resource = fields.Function(fields.Char('Images Resource'),
'get_images_resource')
images = fields.One2Many('ir.attachment', 'resource', 'Images', domain=[
('product_image', '=', True),
],
images = fields.One2Many('ir.attachment', 'resource', 'Images',
context={
'resource': Eval('images_resource'),
}, depends=['images_resource'])