chore: rename depreciation_amount_based_on_num_days_in_month to daily_prorata_based [v14] (#37898)

chore: rename depreciation_amount_based_on_num_days_in_month to daily_prorata_based
This commit is contained in:
Anand Baburajan
2023-11-04 01:48:20 +05:30
committed by GitHub
parent 86c6ae6275
commit 65dfef021a
5 changed files with 26 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from frappe.model.utils.rename_field import rename_field
def execute():
try:
rename_field(
"Asset Finance Book", "depreciation_amount_based_on_num_days_in_month", "daily_prorata_based"
)
except Exception as e:
if e.args[0] != 1054:
raise