diff --git a/website_product_attachments/__manifest__.py b/website_product_attachments/__manifest__.py index 2051fe0b4..549c07dce 100644 --- a/website_product_attachments/__manifest__.py +++ b/website_product_attachments/__manifest__.py @@ -22,7 +22,7 @@ { 'name': 'Product Attachments on Website', - 'version': '13.0.1.0.1', + 'version': '13.0.1.0.2', 'summary': """This Module Allows Customer to Download Documents That Are Attached to the Products From Website""", 'description': 'This Module allows customer to download documents ' diff --git a/website_product_attachments/controllers/website_product_attachment.py b/website_product_attachments/controllers/website_product_attachment.py index 149174efc..5af65949c 100644 --- a/website_product_attachments/controllers/website_product_attachment.py +++ b/website_product_attachments/controllers/website_product_attachment.py @@ -44,8 +44,8 @@ class WebsiteSale(WebsiteSale): category = ProductCategory.browse(int(category)).exists() attrib_list = request.httprequest.args.getlist('attrib') - attrib_values = [map(int, v.split("-")) for v in attrib_list if v] - attrib_set = set([v[1] for v in attrib_values]) + attrib_values = [[int(x) for x in v.split("-")] for v in attrib_list if v] + attrib_set = {v[1] for v in attrib_values} keep = QueryURL('/shop', category=category and category.id, search=search, attrib=attrib_list) categs = ProductCategory.search([('parent_id', '=', False)]) pricelist = request.website.get_current_pricelist() @@ -114,4 +114,3 @@ class WebsiteSale(WebsiteSale): return request.not_found() -