fix reorder_item

This commit is contained in:
Sunny 2017-09-26 12:17:15 +08:00
parent 73f1c93cd2
commit 33670bba47

View File

@ -122,7 +122,7 @@ def create_material_request(material_requests):
"company": company, "company": company,
"transaction_date": nowdate(), "transaction_date": nowdate(),
"material_request_type": "Material Transfer" if request_type=="Transfer" else request_type, "material_request_type": "Material Transfer" if request_type=="Transfer" else request_type,
"schedule_date": add_days(nowdate(),cint(item.lead_time_days)) "schedule_date": add_days(nowdate(), cint(items[0].lead_time_days))
}) })
for d in items: for d in items: