mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
test: ensure no regression after save and submit on disassemble
(cherry picked from commit 18ac589796)
This commit is contained in:
@@ -2542,6 +2542,8 @@ class TestWorkOrder(FrappeTestCase):
|
|||||||
# Disassembly for 4 units
|
# Disassembly for 4 units
|
||||||
disassemble_qty = 4
|
disassemble_qty = 4
|
||||||
stock_entry = frappe.get_doc(make_stock_entry(wo.name, "Disassemble", disassemble_qty))
|
stock_entry = frappe.get_doc(make_stock_entry(wo.name, "Disassemble", disassemble_qty))
|
||||||
|
stock_entry.save()
|
||||||
|
stock_entry.submit()
|
||||||
|
|
||||||
item_counts = {}
|
item_counts = {}
|
||||||
for item in stock_entry.items:
|
for item in stock_entry.items:
|
||||||
|
|||||||
Reference in New Issue
Block a user