From c43ac20115fe377164592cbc44c0dd77f0dc2313 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Wed, 8 Apr 2015 13:48:07 +0530 Subject: [PATCH] Fixes in logic for production order scheduling --- .../manufacturing/doctype/production_order/production_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_order/production_order.py b/erpnext/manufacturing/doctype/production_order/production_order.py index c8c3f6505e3..7b708156357 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py @@ -201,7 +201,7 @@ class ProductionOrder(Document): Planned Start Date. Time logs will be created and remain in Draft mode and must be submitted before manufacturing entry can be made.""" - if not self.operations and not self.planned_start_date: + if not (self.operations and self.planned_start_date): return time_logs = []