fix: get_serial_nos not defined

This commit is contained in:
rohitwaghchaure
2022-12-14 23:06:38 +05:30
committed by GitHub
parent eddb7b429e
commit e5b3748b49

View File

@@ -1147,6 +1147,7 @@ class TestWorkOrder(FrappeTestCase):
@change_settings("Manufacturing Settings", {"make_serial_no_batch_from_work_order": 1})
def test_auto_serial_no_creation(self):
from erpnext.stock.doctype.serial_no.serial_no import get_serial_nos
from erpnext.manufacturing.doctype.bom.test_bom import create_nested_bom
fg_item = frappe.generate_hash(length=20)