-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rename asset classification ranges
- Loading branch information
1 parent
0bc08fe
commit 5edc283
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
lending/patches/v15_0/rename_asset_classification_ranges.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) |