[hotfix] used set_value to save format instead of save (#3634)
This commit is contained in:
parent
c2af7982c7
commit
566dd61fb9
1 changed files with 1 additions and 3 deletions
|
|
@ -11,6 +11,4 @@ def execute():
|
|||
|
||||
auto_email_list = frappe.get_all("Auto Email Report", filters={"format": "XLS"})
|
||||
for auto_email in auto_email_list:
|
||||
doc = frappe.get_doc("Auto Email Report", auto_email.name)
|
||||
doc.format = "XLSX"
|
||||
doc.save()
|
||||
frappe.db.set_value("Auto Email Report", auto_email.name, "format", "XLSX")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue