Update set_null_value_to_fields.py

This commit is contained in:
Nabin Hait 2017-01-20 12:35:22 +05:30 committed by GitHub
parent 84b827efcd
commit f356e539bb

View File

@ -8,4 +8,4 @@ def execute():
fields = {"Cost Center": "project", "Project": "cost_center"}
for budget_against, field in fields.items():
frappe.db.sql(""" update `tabBudget` set {field} = null
where budget_against = %s """.format(field = field), budget_against, debug=1)
where budget_against = %s """.format(field = field), budget_against)