From 2704a4a8fc03f551d40fc3418e62383486b294e8 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 5 Oct 2016 16:14:42 +0530 Subject: [PATCH] Update production_order.py --- .../manufacturing/doctype/production_order/production_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_order/production_order.py b/erpnext/manufacturing/doctype/production_order/production_order.py index 2bf32048aaf..250d6e65a37 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py @@ -55,7 +55,8 @@ class ProductionOrder(Document): if not self.expected_delivery_date: self.expected_delivery_date = so[0].delivery_date - self.project = so[0].project + if so[0].project: + self.project = so[0].project self.validate_production_order_against_so() else: