From 7d05677da76096f477f23b309392a44fe38975a9 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Mon, 12 Sep 2022 10:41:08 +0530 Subject: [PATCH] [UPDT] Sep:12, Bug Fixed 'website_product_attachments' --- website_product_attachments/__manifest__.py | 2 +- .../controllers/website_product_attachment.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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() -