Fixed patch

This commit is contained in:
Nabin Hait 2016-12-06 16:51:55 +05:30
parent c99179746d
commit 03e7957cd6

View file

@ -6,7 +6,7 @@ import frappe
def execute():
for report in frappe.db.sql_list(""" select name from `tabReport` where report_type = 'Report Builder'
and is_standard = 'No'"""):
and is_standard = 'No' and `json` != '' and `json` is not null """):
doc = frappe.get_doc("Report", report)
doc.update_report_json()
doc.db_set("json", doc.json, update_modified=False)