From 0a22aab6bb10467abf5f202f0a7b08b3f2e4d004 Mon Sep 17 00:00:00 2001 From: Rohan Date: Thu, 16 May 2019 19:45:11 +0530 Subject: [PATCH] fix(tests): Save batch instead of submitting it (#17636) --- 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 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',