Merge branch 'latest' of github.com:webnotes/erpnext into latest

This commit is contained in:
Rushabh Mehta 2012-02-21 07:24:52 +01:00
commit 98902f82db

View File

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