[IMP]passed template id instead of product id in website url.
bzr revid: dka@tinyerp.com-20140117123740-w7mtferx8jejy1fl
This commit is contained in:
parent
8cfd06f449
commit
b3248f9db9
|
@ -138,8 +138,8 @@ class product_product(osv.Model):
|
|||
def _website_url(self, cr, uid, ids, field_name, arg, context=None):
|
||||
res = {}
|
||||
base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url')
|
||||
for id in ids:
|
||||
res[id] = "%s/shop/product/%s/" % (base_url, id)
|
||||
for product in self.browse(cr, uid, ids, context=context):
|
||||
res[product.id] = "%s/shop/product/%s/" % (base_url, product.product_tmpl_id.id)
|
||||
return res
|
||||
|
||||
_columns = {
|
||||
|
|
Loading…
Reference in New Issue