Update set_null_value_to_fields.py
This commit is contained in:
parent
84b827efcd
commit
f356e539bb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user