From b1007263127162ddd37b275bb8715d8113417398 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 9 Jan 2014 16:26:21 +0100 Subject: [PATCH] [FIX] product: remove data demo of product in multi_company module; fix product images storage bzr revid: chm@openerp.com-20140109152621-vduwsnm2hbm9nwop --- addons/multi_company/multi_company_demo.xml | 81 --------------------- addons/product/product.py | 4 +- 2 files changed, 2 insertions(+), 83 deletions(-) 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. "\