From 8fb4c02f4efb719e36932da6b739f2f06a9002ae Mon Sep 17 00:00:00 2001 From: Prashant Panchal Date: Fri, 13 Feb 2015 15:57:54 +0530 Subject: [PATCH] [FIX] website_sale : publish button of variant jump to the correct page --- addons/website_sale/models/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_sale/models/product.py b/addons/website_sale/models/product.py index cd129358b70..2278be959a5 100644 --- a/addons/website_sale/models/product.py +++ b/addons/website_sale/models/product.py @@ -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):