Update production_order.py

This commit is contained in:
Nabin Hait 2016-10-05 16:14:42 +05:30 committed by GitHub
parent 55c328348f
commit 2704a4a8fc

View File

@ -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: