'Get all raw materials including items from child bom'

def get_exploded_items(self):

    self.cur_exploded_items = {}
    for d in self.get(u'items'):
        if d.bom_no:
            self.get_child_exploded_items(d.bom_no, d.stock_qty)
        else:
            self.add_to_cur_exploded_items(frappe._dict({u'item_code': d.item_code, u'item_name': d.item_name, u'source_warehouse': d.source_warehouse, u'description': d.description, u'image': d.image, u'stock_uom': d.stock_uom, u'stock_qty': flt(d.stock_qty), u'rate': d.base_rate}))
