[fix] patch #5831
This commit is contained in:
parent
f276b52af3
commit
04a64a7f48
@ -52,7 +52,7 @@ def complete_setup(domain='Manufacturing'):
|
||||
"fy_start_date": "2015-01-01",
|
||||
"fy_end_date": "2015-12-31",
|
||||
"bank_account": "National Bank",
|
||||
"industry": domain,
|
||||
"domain": domain,
|
||||
"company_name": data.get(domain).get('company_name'),
|
||||
"chart_of_accounts": "Standard",
|
||||
"company_abbr": ''.join([d[0] for d in data.get(domain).get('company_name').split()]).upper(),
|
||||
|
@ -2,9 +2,12 @@ import frappe
|
||||
|
||||
from frappe.desk.doctype.desktop_icon.desktop_icon import (sync_desktop_icons,
|
||||
get_desktop_icons, set_hidden)
|
||||
from erpnext.patches.v7_0.migrate_schools_to_erpnext import reload_doctypes_for_schools_icons
|
||||
|
||||
def execute():
|
||||
'''hide new style icons if old ones are set'''
|
||||
reload_doctypes_for_schools_icons()
|
||||
|
||||
sync_desktop_icons()
|
||||
|
||||
for user in frappe.get_all('User', filters={'user_type': 'System User'}):
|
||||
|
@ -3,9 +3,7 @@ import frappe
|
||||
from erpnext.setup.setup_wizard import domainify
|
||||
|
||||
def execute():
|
||||
for name in ('student', 'student_group', 'course_schedule', 'student_attendance',
|
||||
'course', 'program', 'student_applicant', 'examination', 'fees', 'instructor'):
|
||||
frappe.reload_doc('schools', 'doctype', name)
|
||||
reload_doctypes_for_schools_icons()
|
||||
|
||||
frappe.reload_doc('website', 'doctype', 'portal_settings')
|
||||
frappe.reload_doc('website', 'doctype', 'portal_menu_item')
|
||||
@ -27,3 +25,8 @@ def execute():
|
||||
else:
|
||||
frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu()
|
||||
domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))
|
||||
|
||||
def reload_doctypes_for_schools_icons():
|
||||
for name in ('student', 'student_group', 'course_schedule', 'student_attendance',
|
||||
'course', 'program', 'student_applicant', 'examination', 'fees', 'instructor'):
|
||||
frappe.reload_doc('schools', 'doctype', name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user