diff --git a/erpnext/manufacturing/doctype/production_order/test_production_order.py b/erpnext/manufacturing/doctype/production_order/test_production_order.py index 1454c10ce05..40e839323c2 100644 --- a/erpnext/manufacturing/doctype/production_order/test_production_order.py +++ b/erpnext/manufacturing/doctype/production_order/test_production_order.py @@ -285,8 +285,10 @@ def make_prod_order_test_record(**args): pro_order.scrap_warehouse = args.fg_warehouse or "_Test Scrap Warehouse - _TC" pro_order.company = args.company or "_Test Company" pro_order.stock_uom = args.stock_uom or "_Test UOM" + pro_order.use_multi_level_bom=0 pro_order.set_production_order_operations() + if args.source_warehouse: pro_order.source_warehouse = args.source_warehouse