test: ensure no regression after save and submit on disassemble

(cherry picked from commit 18ac589796)
This commit is contained in:
Smit Vora
2025-12-19 18:19:40 +05:30
committed by Mergify
parent dd19b95113
commit 16112630ea

View File

@@ -2542,6 +2542,8 @@ class TestWorkOrder(FrappeTestCase):
# 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: