fix: python2 string formatting

This commit is contained in:
Rohit Waghchaure
2021-10-28 23:11:53 +05:30
parent d6555e8632
commit e60d7ac09e

View File

@@ -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'):