diff --git a/erpnext/stock/doctype/batch/test_batch.py b/erpnext/stock/doctype/batch/test_batch.py index 343d517c236..5005e253290 100644 --- a/erpnext/stock/doctype/batch/test_batch.py +++ b/erpnext/stock/doctype/batch/test_batch.py @@ -176,7 +176,7 @@ class TestBatch(unittest.TestCase): item = item_name, batch_id = batch_name )).insert(ignore_permissions=True) - batch.submit() + batch.save() stock_entry = frappe.get_doc(dict( doctype = 'Stock Entry',