Merge pull request #52026 from frappe/mergify/bp/version-16-hotfix/pr-51756

fix: disable asset repair when status is fully depreciated (backport #51756)
This commit is contained in:
ruthra kumar
2026-01-24 09:46:53 +05:30
committed by GitHub

View File

@@ -116,14 +116,6 @@ frappe.ui.form.on("Asset", {
__("Manage")
);
frm.add_custom_button(
__("Repair Asset"),
function () {
frm.trigger("create_asset_repair");
},
__("Manage")
);
frm.add_custom_button(
__("Split Asset"),
function () {
@@ -155,6 +147,14 @@ frappe.ui.form.on("Asset", {
},
__("Manage")
);
frm.add_custom_button(
__("Repair Asset"),
function () {
frm.trigger("create_asset_repair");
},
__("Manage")
);
}
if (!frm.doc.calculate_depreciation) {