From e11f299b21f5d235b0e6939aea7239cd09ccff63 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 11 Sep 2018 11:36:05 +0530 Subject: [PATCH] Update production_order.py --- .../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 158c4433d5..2f2c40ef2d 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py @@ -318,7 +318,7 @@ class ProductionOrder(Document): from_time, to_time = self.get_start_end_time(timesheet, d.name) - if date_diff(from_time, original_start_time) > plan_days: + if date_diff(from_time, original_start_time) > cint(plan_days): frappe.throw(_("Unable to find Time Slot in the next {0} days for Operation {1}").format(plan_days, d.operation)) break