From e8e26a91bb6367057cb70e760d659065a8620a7b Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 9 Nov 2025 17:56:24 +0100 Subject: [PATCH] fix(buying): fetch Cost Center from Project (cherry picked from commit bdabcb081a45f6b0d5a80c654523610237cc334c) --- erpnext/public/js/controllers/buying.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/buying.js b/erpnext/public/js/controllers/buying.js index 8c0be8042ac..ba1e5348847 100644 --- a/erpnext/public/js/controllers/buying.js +++ b/erpnext/public/js/controllers/buying.js @@ -2,7 +2,6 @@ // License: GNU General Public License v3. See license.txt frappe.provide("erpnext.buying"); -// cur_frm.add_fetch('project', 'cost_center', 'cost_center'); erpnext.buying = { setup_buying_controller: function() { @@ -11,6 +10,7 @@ erpnext.buying = { super.setup(); this.toggle_enable_for_stock_uom("allow_to_edit_stock_uom_qty_for_purchase"); this.frm.email_field = "contact_email"; + this.frm.add_fetch("project", "cost_center", "cost_center"); } onload(doc, cdt, cdn) {