Fixes in logic for production order scheduling

This commit is contained in:
Neil Trini Lasrado 2015-04-08 13:48:07 +05:30
parent d3d94d1efe
commit c43ac20115

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