'bom_dict {
bom_no: [\'sales_order\', \'qty\']'

def get_so_wise_planned_qty(self):

    bom_dict = {}
    for d in self.get(u'items'):
        if (self.get_items_from == u'Material    Request'):
            bom_dict.setdefault(d.bom_no, []).append([d.material_request_item, flt(d.planned_qty)])
        else:
            bom_dict.setdefault(d.bom_no, []).append([d.sales_order, flt(d.planned_qty)])
    return bom_dict
