From ba537b0b93a0d14459310d47c282b7c6b6d51e0e Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 29 Oct 2021 15:41:55 +0530 Subject: [PATCH] fix: py2 string formatting --- erpnext/patches/v11_0/rename_bom_wo_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v11_0/rename_bom_wo_fields.py b/erpnext/patches/v11_0/rename_bom_wo_fields.py index 55dce6355cd..f055f9450c1 100644 --- a/erpnext/patches/v11_0/rename_bom_wo_fields.py +++ b/erpnext/patches/v11_0/rename_bom_wo_fields.py @@ -7,7 +7,7 @@ from frappe.model.utils.rename_field import rename_field def execute(): # updating column value to handle field change from Data to Currency - frappe.db.sql(f"update `tabBOM` set base_scrap_material_cost = '0' where trim(coalesce(base_scrap_material_cost, ''))= ''") + frappe.db.sql("update `tabBOM` set base_scrap_material_cost = '0' where trim(coalesce(base_scrap_material_cost, ''))= ''") for doctype in ['BOM Explosion Item', 'BOM Item', 'Work Order Item', 'Item']: if frappe.db.has_column(doctype, 'allow_transfer_for_manufacture'):