From 45c14ed41ccb0f26dbad72b33e2ccc4156dd54f8 Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Thu, 19 Jan 2017 12:22:04 +0530 Subject: [PATCH] [Minor] Date fix in Production Order --- .../doctype/production_order/production_order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/manufacturing/doctype/production_order/production_order.py b/erpnext/manufacturing/doctype/production_order/production_order.py index aa693423f3..f69087811b 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py @@ -304,9 +304,9 @@ class ProductionOrder(Document): def get_operations_data(self, data): return { - 'from_time': data.planned_start_time, + 'from_time': get_datetime(data.planned_start_time), 'hours': data.time_in_mins / 60.0, - 'to_time': data.planned_end_time, + 'to_time': get_datetime(data.planned_end_time), 'project': self.project, 'operation': data.operation, 'operation_id': data.name,