Removed Material Request type validation

This commit is contained in:
Neil Trini Lasrado 2016-01-21 16:01:17 +05:30
parent 966e5643c9
commit cc23bc0549

View File

@ -70,9 +70,7 @@ class MaterialRequest(BuyingController):
from erpnext.controllers.status_updater import validate_status
validate_status(self.status, ["Draft", "Submitted", "Stopped", "Cancelled"])
self.validate_value("material_request_type", "in", ["Purchase", "Material Transfer", "Material Issue"])
pc_obj = frappe.get_doc('Purchase Common')
pc_obj.validate_for_items(self)