Revert "Ignore validating mandatory fields on converting timelogs to timesheets"

This commit is contained in:
Nabin Hait
2016-08-22 14:36:33 +05:30
committed by GitHub
parent 1b9f8006c2
commit 5c9a2b39bc
2 changed files with 3 additions and 12 deletions

View File

@@ -9,13 +9,12 @@ def execute():
frappe.reload_doc('website', 'doctype', 'portal_menu_item')
frappe.reload_doc('buying', 'doctype', 'request_for_quotation')
if frappe.db.exists("Module Def", "Academics") \
and frappe.db.get_value("Module Def", "Academics", "app_name") == "schools":
if 'schools' in frappe.get_installed_apps():
frappe.db.sql("""delete from `tabDesktop Icon`""")
if not frappe.db.exists('Module Def', 'Schools') and frappe.db.exists('Module Def', 'Academics'):
frappe.rename_doc("Module Def", "Academics", "Schools")
remove_from_installed_apps("schools")
def reload_doctypes_for_schools_icons():