From 58f70396307846ac014398f3016cc94c0318d656 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Fri, 3 May 2024 18:34:27 +0530 Subject: [PATCH] fix: Cost center not getting saved in PSOA --- .../accounts/doctype/psoa_cost_center/psoa_cost_center.json | 6 ++++-- .../accounts/doctype/psoa_cost_center/psoa_cost_center.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.json b/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.json index e3dd8f35b59..62556c2b5ff 100644 --- a/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.json +++ b/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.json @@ -11,13 +11,15 @@ { "fieldname": "cost_center_name", "fieldtype": "Link", + "in_list_view": 1, "label": "Cost Center", - "options": "Cost Center" + "options": "Cost Center", + "reqd": 1 } ], "istable": 1, "links": [], - "modified": "2024-03-27 13:10:23.244686", + "modified": "2024-05-03 17:16:51.666461", "modified_by": "Administrator", "module": "Accounts", "name": "PSOA Cost Center", diff --git a/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.py b/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.py index 683cd78df04..61961147069 100644 --- a/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.py +++ b/erpnext/accounts/doctype/psoa_cost_center/psoa_cost_center.py @@ -15,7 +15,7 @@ class PSOACostCenter(Document): if TYPE_CHECKING: from frappe.types import DF - cost_center_name: DF.Link | None + cost_center_name: DF.Link parent: DF.Data parentfield: DF.Data parenttype: DF.Data