From 6f7457a1b000ce55c015a2324c3f31f48cf019c7 Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Thu, 16 Mar 2017 16:03:41 +0530 Subject: [PATCH] [Fix] Warehouse not required for Dropship --- erpnext/buying/doctype/purchase_common/purchase_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.py b/erpnext/buying/doctype/purchase_common/purchase_common.py index b35044ad21..844a6551ba 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.py +++ b/erpnext/buying/doctype/purchase_common/purchase_common.py @@ -65,7 +65,7 @@ class PurchaseCommon(BuyingController): validate_end_of_life(d.item_code, item.end_of_life, item.disabled) # validate stock item - if item.is_stock_item==1 and d.qty and not d.warehouse: + if item.is_stock_item==1 and d.qty and not d.warehouse and not d.delivered_by_supplier: frappe.throw(_("Warehouse is mandatory for stock Item {0} in row {1}").format(d.item_code, d.idx)) items.append(cstr(d.item_code))