Changed case in modules.txt

This commit is contained in:
Anand Doshi 2014-06-06 16:28:03 +05:30
parent 04badf7e6e
commit 4a069a1e7f
3 changed files with 24 additions and 12 deletions

View File

@ -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

View File

@ -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

View 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")