Merge pull request #7524 from KanchanChauhan/date-fixes

Date fixes in Production Order
This commit is contained in:
Nabin Hait 2017-01-20 12:09:46 +05:30 committed by GitHub
commit 78966fe03b

View File

@ -304,9 +304,9 @@ class ProductionOrder(Document):
def get_operations_data(self, data): def get_operations_data(self, data):
return { return {
'from_time': data.planned_start_time, 'from_time': get_datetime(data.planned_start_time),
'hours': data.time_in_mins / 60.0, 'hours': data.time_in_mins / 60.0,
'to_time': data.planned_end_time, 'to_time': get_datetime(data.planned_end_time),
'project': self.project, 'project': self.project,
'operation': data.operation, 'operation': data.operation,
'operation_id': data.name, 'operation_id': data.name,