Browse Source

[UPDT] Sep:12, Bug Fixed 'website_product_attachments'

pull/213/head
AjmalCybro 3 years ago
parent
commit
7d05677da7
  1. 2
      website_product_attachments/__manifest__.py
  2. 5
      website_product_attachments/controllers/website_product_attachment.py

2
website_product_attachments/__manifest__.py

@ -22,7 +22,7 @@
{ {
'name': 'Product Attachments on Website', '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 'summary': """This Module Allows Customer to Download Documents
That Are Attached to the Products From Website""", That Are Attached to the Products From Website""",
'description': 'This Module allows customer to download documents ' 'description': 'This Module allows customer to download documents '

5
website_product_attachments/controllers/website_product_attachment.py

@ -44,8 +44,8 @@ class WebsiteSale(WebsiteSale):
category = ProductCategory.browse(int(category)).exists() category = ProductCategory.browse(int(category)).exists()
attrib_list = request.httprequest.args.getlist('attrib') attrib_list = request.httprequest.args.getlist('attrib')
attrib_values = [map(int, v.split("-")) for v in attrib_list if v] attrib_values = [[int(x) for x in v.split("-")] for v in attrib_list if v]
attrib_set = set([v[1] for v in attrib_values]) attrib_set = {v[1] for v in attrib_values}
keep = QueryURL('/shop', category=category and category.id, search=search, attrib=attrib_list) keep = QueryURL('/shop', category=category and category.id, search=search, attrib=attrib_list)
categs = ProductCategory.search([('parent_id', '=', False)]) categs = ProductCategory.search([('parent_id', '=', False)])
pricelist = request.website.get_current_pricelist() pricelist = request.website.get_current_pricelist()
@ -114,4 +114,3 @@ class WebsiteSale(WebsiteSale):
return request.not_found() return request.not_found()

Loading…
Cancel
Save