[fix] patch
This commit is contained in:
parent
d3d957c10a
commit
4ac1863027
1 changed files with 7 additions and 4 deletions
|
|
@ -2,11 +2,14 @@ import frappe
|
|||
|
||||
def execute():
|
||||
frappe.reload_doc('custom', 'doctype', 'custom_field', force=True)
|
||||
|
||||
|
||||
try:
|
||||
frappe.db.sql('update `tabCustom Field` set in_standard_filter = in_filter_dash')
|
||||
except Exception, e:
|
||||
if e.args[0]!=1054: raise e
|
||||
|
||||
for doctype in frappe.get_all("DocType", {"istable": 0, "issingle": 0}):
|
||||
frappe.reload_doctype(doctype.name, force=True)
|
||||
|
||||
for doctype in frappe.get_all("DocType", {"istable": 0, "issingle": 0, "custom": 0}):
|
||||
try:
|
||||
frappe.reload_doctype(doctype.name, force=True)
|
||||
except KeyError:
|
||||
pass
|
||||
Loading…
Add table
Reference in a new issue