Material Request: fixed series issue in insert_purchase_request

This commit is contained in:
Anand Doshi 2014-06-26 12:07:55 +05:30
parent 994f0c3d49
commit 1030af7b48

View File

@ -370,10 +370,8 @@ class ProductionPlanningTool(Document):
if items_to_be_requested:
for item in items_to_be_requested:
item_wrapper = frappe.get_doc("Item", item)
pr_doc = frappe.get_doc({
"doctype": "Material Request",
"__islocal": 1,
"naming_series": "IDT",
pr_doc = frappe.new_doc("Material Request")
pr_doc.update({
"transaction_date": nowdate(),
"status": "Draft",
"company": self.company,