浏览代码

[minor] reload auto email report doctype before settings format to xlsx (#3613)

version-14
Makarand Bauskar 8 年前
committed by Rushabh Mehta
父节点
当前提交
f2c9fd28e8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      frappe/patches/v8_1/update_format_options_in_auto_email_report.py

+ 2
- 0
frappe/patches/v8_1/update_format_options_in_auto_email_report.py 查看文件

@@ -7,6 +7,8 @@ import frappe
def execute():
""" change the XLS option as XLSX in the auto email report """

frappe.reload_doc("email", "doctype", "auto_email_report")

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)


正在加载...
取消
保存