diff --git a/addons/multi_company/multi_company_demo.xml b/addons/multi_company/multi_company_demo.xml index 0c7b200a867..44a021c1434 100644 --- a/addons/multi_company/multi_company_demo.xml +++ b/addons/multi_company/multi_company_demo.xml @@ -94,87 +94,6 @@ Resource: product.product --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Odoo Offers diff --git a/addons/product/product.py b/addons/product/product.py index 4e158e8e7f6..163785459b4 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -420,7 +420,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, "\ @@ -428,7 +428,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. "\