Skip to content

Commit

Permalink
fix: remove html tag from Description
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikas8600 committed Apr 21, 2023
1 parent d3155d3 commit 901fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce_integrations/unicommerce/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _build_unicommerce_item(item_code: ItemCode) -> JsonDict:
item_json["imageUrl"] = get_url(item.image)
item_json["maxRetailPrice"] = frappe.get_value("Item Price",{"item_code":item_code},"price_list_rate")
item_json["hsnCode"] = frappe.get_value("Item",item.name,"gst_hsn_code")
item_json["description"] = frappe.get_value("Item",item.name,"description")
item_json["description"] = frappe.utils.strip_html_tags(frappe.get_value("Item",item.name,"description"))
item_json["gstTaxTypeCode"] = frappe.get_value("Item Tax",{"parent":item.name},"item_tax_template")
item_json["costPrice"] = item.valuation_rate
return item_json
Expand Down

0 comments on commit 901fe14

Please sign in to comment.