[#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:
parent
7a8802e6c4
commit
d727b9075b
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue