From fc79efb97c5d4396913b25297a7c64f762631003 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 25 Apr 2014 18:44:28 +0530 Subject: [PATCH] Fixes #1532. Only show an error message for missing Quality Inspection but let the user submit Purchase Receipt. --- erpnext/stock/doctype/purchase_receipt/purchase_receipt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index 9b3d0a9135..8b134bd779 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py @@ -207,7 +207,7 @@ class PurchaseReceipt(BuyingController): (d.item_code,), as_dict = 1) ins_reqd = ins_reqd and ins_reqd[0]['inspection_required'] or 'No' if ins_reqd == 'Yes' and not d.qa_no: - frappe.throw(_("Quality Inspection required for Item {0}").format(d.item_code)) + frappe.msgprint(_("Quality Inspection required for Item {0}").format(d.item_code)) # Check for Stopped status def check_for_stopped_status(self, pc_obj):