diff --git a/addons/product/product.py b/addons/product/product.py index 936e90a424d..abe91b06059 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -343,7 +343,7 @@ class product_template(osv.osv): 'image_medium': fields.function(_get_image, fnct_inv=_set_image, string="Medium-sized image", type="binary", multi="_get_image", store={ - 'product.product': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), + 'product.template': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), }, help="Medium-sized image of the product. It is automatically "\ "resized as a 128x128px image, with aspect ratio preserved, "\ @@ -351,7 +351,7 @@ class product_template(osv.osv): 'image_small': fields.function(_get_image, fnct_inv=_set_image, string="Small-sized image", type="binary", multi="_get_image", store={ - 'product.product': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), + 'product.template': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10), }, help="Small-sized image of the product. It is automatically "\ "resized as a 64x64px image, with aspect ratio preserved. "\ diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index b66c11bcf9d..d1ab196a73c 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -655,7 +655,7 @@ Product Variants ir.actions.act_window - + [('variants','<>', False)] product.product form tree,form,kanban @@ -824,7 +824,7 @@
- +