From 01c64915c8da72d2c4d421685886ac14ab25ca13 Mon Sep 17 00:00:00 2001 From: Sagar Sharma Date: Thu, 31 Mar 2022 22:40:28 +0530 Subject: [PATCH] chore: remove unwanted validation --- erpnext/controllers/buying_controller.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index c0fd83ec59..3a69e717bd 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -339,9 +339,6 @@ class BuyingController(StockController, Subcontracting): return supplied_items_cost def validate_for_subcontracting(self): - if not self.is_subcontracted and self.sub_contracted_items: - frappe.throw(_("Please enter 'Is Subcontracted' as Yes or No")) - if self.is_subcontracted: if self.doctype in ["Purchase Receipt", "Purchase Invoice"] and not self.supplier_warehouse: frappe.throw(_("Supplier Warehouse mandatory for sub-contracted {0}").format(self.doctype))