From bfb09d51a3e972bfa8c4c59081d35239429b7dc5 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 22 May 2019 12:15:56 +0530 Subject: [PATCH] fix: test cases --- erpnext/buying/doctype/purchase_order/test_purchase_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/buying/doctype/purchase_order/test_purchase_order.py b/erpnext/buying/doctype/purchase_order/test_purchase_order.py index cca9838211..be68594d29 100644 --- a/erpnext/buying/doctype/purchase_order/test_purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/test_purchase_order.py @@ -196,7 +196,7 @@ class TestPurchaseOrder(unittest.TestCase): def test_purchase_order_on_hold(self): po = create_purchase_order(item_code="_Test Product Bundle Item") po.db_set('Status', "On Hold") - pi = make_purchase_invoice(po.name) + pi = make_pi_from_po(po.name) pr = make_purchase_receipt(po.name) self.assertRaises(frappe.ValidationError, pr.submit) self.assertRaises(frappe.ValidationError, pi.submit)