From a094560b8b019b87c956a6839abced06c1126b6f Mon Sep 17 00:00:00 2001 From: Rohan Date: Thu, 16 May 2019 19:44:55 +0530 Subject: [PATCH] fix(tests): Save batch instead of submitting it (#17637) --- erpnext/stock/doctype/batch/test_batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/batch/test_batch.py b/erpnext/stock/doctype/batch/test_batch.py index 737f5287611..56b460781cb 100644 --- a/erpnext/stock/doctype/batch/test_batch.py +++ b/erpnext/stock/doctype/batch/test_batch.py @@ -182,7 +182,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',