From 18ac5897960a65b20fa41a1d59d8c853550e3327 Mon Sep 17 00:00:00 2001 From: Smit Vora Date: Fri, 19 Dec 2025 18:19:40 +0530 Subject: [PATCH] test: ensure no regression after save and submit on disassemble --- erpnext/manufacturing/doctype/work_order/test_work_order.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/manufacturing/doctype/work_order/test_work_order.py b/erpnext/manufacturing/doctype/work_order/test_work_order.py index 6c36cf9332d..67ebec0eb9b 100644 --- a/erpnext/manufacturing/doctype/work_order/test_work_order.py +++ b/erpnext/manufacturing/doctype/work_order/test_work_order.py @@ -2541,6 +2541,8 @@ class TestWorkOrder(IntegrationTestCase): # Disassembly for 4 units disassemble_qty = 4 stock_entry = frappe.get_doc(make_stock_entry(wo.name, "Disassemble", disassemble_qty)) + stock_entry.save() + stock_entry.submit() item_counts = {} for item in stock_entry.items: