[imp] solved image issue when duplicate the product.

bzr revid: amb@tinyerp.com-20131202135105-0gy7pmxgdysi5a9p
This commit is contained in:
Amit Bhavsar (Open ERP)
2013-12-02 19:21:05 +05:30
parent f70b33b5c0
commit ca6c085712
+1 -1
View File
@@ -720,7 +720,7 @@ class product_product(osv.osv):
def create(self, cr, uid, data, context=None):
if 'product_tmpl_id' in data:
template = self.pool.get('product.template').browse(cr, uid, data['product_tmpl_id'], context=context)
if template.image:
if template.image and not 'image' in data:
data['image'] = template.image
return super(product_product, self).create(cr, uid, data, context=context)