chore: rename daily_depreciation in asset to depreciation_amount_based_on_num_days_in_month [v14] (#37895)

chore: rename daily_depreciation to depreciation_amount_based_on_num_days_in_month
This commit is contained in:
Anand Baburajan
2023-11-03 23:26:34 +05:30
committed by GitHub
parent fed25fac76
commit 86c6ae6275
5 changed files with 35 additions and 15 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", "daily_depreciation", "depreciation_amount_based_on_num_days_in_month"
)
except Exception as e:
if e.args[0] != 1054:
raise