[FIX] website_sale : publish button of variant jump to the correct page

This commit is contained in:
Prashant Panchal
2015-03-13 10:13:56 +01:00
committed by Thibault Delavallée
parent 3440501fd0
commit 8fb4c02f4e
+2 -2
View File
@@ -181,8 +181,8 @@ class product_product(osv.Model):
# Wrapper for call_kw with inherits
def open_website_url(self, cr, uid, ids, context=None):
template_ids = list(set(self.browse(cr, uid, ids, context=context).product_tmpl_id.id))
return self.pool['product.template'].open_website_url(cr, uid, template_ids, context=context)
template_id = self.browse(cr, uid, ids, context=context).product_tmpl_id.id
return self.pool['product.template'].open_website_url(cr, uid, [template_id], context=context)
class product_attribute(osv.Model):