Changed case in modules.txt
This commit is contained in:
parent
04badf7e6e
commit
4a069a1e7f
@ -1,12 +1,12 @@
|
||||
accounts
|
||||
buying
|
||||
home
|
||||
hr
|
||||
manufacturing
|
||||
projects
|
||||
selling
|
||||
setup
|
||||
stock
|
||||
support
|
||||
utilities
|
||||
contacts
|
||||
Accounts
|
||||
Buying
|
||||
Home
|
||||
HR
|
||||
Manufacturing
|
||||
Projects
|
||||
Selling
|
||||
Setup
|
||||
Stock
|
||||
Support
|
||||
Utilities
|
||||
Contacts
|
||||
|
@ -47,6 +47,7 @@ erpnext.patches.v4_0.update_account_root_type
|
||||
execute:frappe.delete_doc("Report", "Purchase In Transit")
|
||||
erpnext.patches.v4_0.new_address_template
|
||||
execute:frappe.delete_doc("DocType", "SMS Control")
|
||||
erpnext.patches.v4_0.fix_case_of_hr_module_def
|
||||
|
||||
# WATCHOUT: This patch reload's documents
|
||||
erpnext.patches.v4_0.reset_permissions_for_masters
|
||||
|
11
erpnext/patches/v4_0/fix_case_of_hr_module_def.py
Normal file
11
erpnext/patches/v4_0/fix_case_of_hr_module_def.py
Normal file
@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||
# MIT License. See license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
hr = frappe.db.get_value("Module Def", "HR")
|
||||
if hr == "Hr":
|
||||
frappe.rename_doc("Module Def", "Hr", "HR")
|
||||
frappe.db.set_value("Module Def", "HR", "module_name", "HR")
|
Loading…
x
Reference in New Issue
Block a user