Fixes in make_time_log function in Production Order

This commit is contained in:
Neil Trini Lasrado 2015-04-14 13:06:07 +05:30
parent cf96cc26a0
commit 18dc151fc7

View File

@ -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 self.planned_start_date):
if not self.operations:
return
time_logs = []