chore(asset): change field name

This commit is contained in:
SowmyaArunachalam
2025-12-03 20:53:38 +05:30
parent d52d98666f
commit b5ee193566
3 changed files with 7 additions and 7 deletions

View File

@@ -73,7 +73,7 @@
"calculate_depr_using_total_days",
"column_break_gjcc",
"book_asset_depreciation_entry_automatically",
"role_used_for_depreciation_failure",
"role_to_notify_on_depreciation_failure",
"closing_settings_tab",
"period_closing_settings_section",
"acc_frozen_upto",
@@ -661,10 +661,10 @@
"label": "Use Legacy Controller For Period Closing Voucher"
},
{
"description": "Users with this role will be notified if the asset depreciation fails",
"fieldname": "role_used_for_depreciation_failure",
"description": "Users with this role will be notified if the asset depreciation gets failed",
"fieldname": "role_to_notify_on_depreciation_failure",
"fieldtype": "Link",
"label": "Role used for Depreciation Failure",
"label": "Role to Notify on Depreciation Failure",
"options": "Role"
}
],
@@ -674,7 +674,7 @@
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2025-11-24 23:36:21.829372",
"modified": "2025-12-03 20:42:13.238050",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Accounts Settings",

View File

@@ -64,8 +64,8 @@ class AccountsSettings(Document):
receivable_payable_remarks_length: DF.Int
reconciliation_queue_size: DF.Int
role_allowed_to_over_bill: DF.Link | None
role_to_notify_on_depreciation_failure: DF.Link | None
role_to_override_stop_action: DF.Link | None
role_used_for_depreciation_failure: DF.Link | None
round_row_wise_tax: DF.Check
show_balance_in_coa: DF.Check
show_inclusive_tax_in_print: DF.Check

View File

@@ -307,7 +307,7 @@ def set_depr_entry_posting_status_for_failed_assets(failed_asset_names):
def notify_depr_entry_posting_error(failed_asset_names, error_log_names):
user_role = frappe.db.get_single_value("Accounts Settings", "role_used_for_depreciation_failure")
user_role = frappe.db.get_single_value("Accounts Settings", "role_to_notify_on_depreciation_failure")
recipients = get_users_with_role(user_role or "Accounts Manager")
if not recipients: