Merge pull request #12780 from frappe/mergify/bp/version-13-pre-release/pr-12779

fix: use reload_doc instead of reload_doctype (bp #12779)
This commit is contained in:
Suraj Shetty 2021-04-01 21:59:07 +05:30 committed by GitHub
commit b35cb0863b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ import frappe
def execute():
if frappe.db.table_exists('List View Setting'):
if not frappe.db.table_exists('List View Settings'):
frappe.reload_doctype("List View Settings")
frappe.reload_doc("desk", "doctype", "List View Settings")
existing_list_view_settings = frappe.get_all('List View Settings', as_list=True)
for list_view_setting in frappe.get_all('List View Setting', fields = ['disable_count', 'disable_sidebar_stats', 'disable_auto_refresh', 'name']):