chore: add `depends_on` condition for `Reserve Stock` field in SO
diff --git a/erpnext/selling/doctype/sales_order/sales_order.json b/erpnext/selling/doctype/sales_order/sales_order.json
index 47bb37c..289c9de 100644
--- a/erpnext/selling/doctype/sales_order/sales_order.json
+++ b/erpnext/selling/doctype/sales_order/sales_order.json
@@ -1641,6 +1641,7 @@
},
{
"default": "0",
+ "depends_on": "eval: (doc.docstatus == 0 || doc.reserve_stock)",
"description": "If checked, Stock Reservation Entries will be created on <b>Submit</b>",
"fieldname": "reserve_stock",
"fieldtype": "Check",
@@ -1654,7 +1655,7 @@
"idx": 105,
"is_submittable": 1,
"links": [],
- "modified": "2023-04-04 10:39:34.129343",
+ "modified": "2023-04-22 09:55:37.008190",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order",