From 171586db9bacf4062e65dc34da5568205856eb94 Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Thu, 25 Jan 2024 14:26:01 +0530 Subject: [PATCH] fix: make SO item code reqd (cherry picked from commit 7f8303a493c15a0e32f0b13e464a411c5c4c283b) --- erpnext/selling/doctype/sales_order_item/sales_order_item.json | 3 ++- erpnext/selling/doctype/sales_order_item/sales_order_item.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/doctype/sales_order_item/sales_order_item.json b/erpnext/selling/doctype/sales_order_item/sales_order_item.json index 87aeeac36835..9599980418f5 100644 --- a/erpnext/selling/doctype/sales_order_item/sales_order_item.json +++ b/erpnext/selling/doctype/sales_order_item/sales_order_item.json @@ -118,6 +118,7 @@ "oldfieldtype": "Link", "options": "Item", "print_width": "150px", + "reqd": 1, "width": "150px" }, { @@ -908,7 +909,7 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2023-11-24 13:24:55.756320", + "modified": "2024-01-25 14:24:00.330219", "modified_by": "Administrator", "module": "Selling", "name": "Sales Order Item", diff --git a/erpnext/selling/doctype/sales_order_item/sales_order_item.py b/erpnext/selling/doctype/sales_order_item/sales_order_item.py index 25f5b4b0e725..fa7b9b968f33 100644 --- a/erpnext/selling/doctype/sales_order_item/sales_order_item.py +++ b/erpnext/selling/doctype/sales_order_item/sales_order_item.py @@ -43,7 +43,8 @@ class SalesOrderItem(Document): gross_profit: DF.Currency image: DF.Attach | None is_free_item: DF.Check - item_code: DF.Link | None + is_stock_item: DF.Check + item_code: DF.Link item_group: DF.Link | None item_name: DF.Data item_tax_rate: DF.Code | None