From 0329c0ffabfe45a707f4e8bbfef8d6283427f346 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 27 Mar 2017 19:11:45 +0530 Subject: [PATCH] Test case fixed for production order --- .../doctype/production_order/test_production_order.py | 2 ++ 1 file changed, 2 insertions(+) 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