Skip to content

Commit

Permalink
chore: rename asset classification ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan committed Sep 10, 2023
1 parent 0bc08fe commit 5edc283
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lending/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
{
"fieldname": "asset_classification_ranges",
"label": "Asset Classification Ranges",
"label": "Loan Asset Classification Ranges",
"fieldtype": "Table",
"options": "Loan Asset Classification Range",
"insert_after": "loan_section_break_2",
Expand Down
3 changes: 2 additions & 1 deletion lending/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ lending.patches.v15_0.rename_process_asset_classification_doctype
# Patches added in this section will be executed after doctypes are migrated
lending.patches.v15_0.update_loan_types
lending.patches.v15_0.create_custom_fields #6
lending.patches.v15_0.make_loan_type_non_submittable
lending.patches.v15_0.make_loan_type_non_submittable
lending.patches.v15_0.rename_asset_classification_ranges
15 changes: 15 additions & 0 deletions lending/patches/v15_0/rename_asset_classification_ranges.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt


import frappe


def execute():
if frappe.db.exists("Custom Field", {"name": "Company-asset_classification_ranges"}):
frappe.db.set_value(
"Custom Field",
{"name": "Company-asset_classification_ranges"},
"label",
"Loan Asset Classification Ranges",
)

0 comments on commit 5edc283

Please sign in to comment.