From d42aad18a71c0f40f25fc9d604b3f4fafe07fa9d Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Wed, 10 Dec 2025 00:46:03 +0530 Subject: [PATCH] fix: remove revise budget permission --- erpnext/accounts/doctype/budget/budget.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/erpnext/accounts/doctype/budget/budget.js b/erpnext/accounts/doctype/budget/budget.js index 4ab94ed0f55..0d590b4817f 100644 --- a/erpnext/accounts/doctype/budget/budget.js +++ b/erpnext/accounts/doctype/budget/budget.js @@ -33,23 +33,13 @@ frappe.ui.form.on("Budget", { frm.trigger("toggle_reqd_fields"); if (!frm.doc.__islocal && frm.doc.docstatus == 1) { - let exception_role = await frappe.db.get_value( - "Company", - frm.doc.company, - "exception_budget_approver_role" + frm.add_custom_button( + __("Revise Budget"), + function () { + frm.events.revise_budget_action(frm); + }, + __("Actions") ); - - const role = exception_role.message.exception_budget_approver_role; - - if (role && frappe.user.has_role(role)) { - frm.add_custom_button( - __("Revise Budget"), - function () { - frm.events.revise_budget_action(frm); - }, - __("Actions") - ); - } } toggle_distribution_fields(frm);