refactor: fix logical bug and make stock settings test deterministic

This commit is contained in:
ruthra kumar
2025-12-31 17:13:29 +05:30
parent d8be59b1ba
commit 4111d4ee1d

View File

@@ -353,8 +353,8 @@ def clean_all_descriptions():
for item in frappe.get_all("Item", ["name", "description"]):
if item.description:
clean_description = clean_html(item.description)
if item.description != clean_description:
frappe.db.set_value("Item", item.name, "description", clean_description)
if item.description != clean_description:
frappe.db.set_value("Item", item.name, "description", clean_description)
@frappe.whitelist()