From d1f40ad0b6040a084be5ce0d417071abb6ff69c8 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 14 Jun 2018 17:09:55 +0530 Subject: [PATCH] minor fix --- erpnext/controllers/stock_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 428217820b..7b3f740462 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -343,7 +343,7 @@ class StockController(AccountsController): raise frappe.ValidationError def update_blanket_order(self): - blanket_orders = list(set([d.blanket_order for d in self.items])) + blanket_orders = list(set([d.blanket_order for d in self.items if d.blanket_order])) for blanket_order in blanket_orders: frappe.get_doc("Blanket Order", blanket_order).update_ordered_qty()