From 468008717bc5c518e18e90268212f98d9cad3734 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 21 Feb 2012 11:14:49 +0530 Subject: [PATCH] removed extra cond from bom --- .../doctype/bill_of_materials/bill_of_materials.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/production/doctype/bill_of_materials/bill_of_materials.py b/erpnext/production/doctype/bill_of_materials/bill_of_materials.py index 4fec879aa6..117742576d 100644 --- a/erpnext/production/doctype/bill_of_materials/bill_of_materials.py +++ b/erpnext/production/doctype/bill_of_materials/bill_of_materials.py @@ -318,7 +318,6 @@ class DocType: ch.fields[i] = d[i] ch.docstatus = is_submit ch.save(1) - self.doc.save() @@ -351,10 +350,6 @@ class DocType: """ Get all raw materials including items from child bom""" self.cur_flat_bom_items = [] for d in getlist(self.doclist, 'bom_materials'): - item = {} - if d.bom_no: - item = sql("select is_sub_contracted_item from `tabItem` where name = '%s'" % d.item_code) - self.cur_flat_bom_items.append({ 'item_code' : d.item_code, 'description' : d.description,