'Find the first level ancestors of given move'

@api.returns('self')
@api.multi
def get_ancestors(self):

    ancestors = self.env['stock.move']
    move = self
    while move:
        ancestors |= move.move_orig_ids
        move = (((not move.move_orig_ids) and move.split_from) or False)
    return ancestors
