'This function returns an action that display existing procurement orders
of same procurement group of given ids.'

@api.multi
def do_view_procurements(self):

    action = self.env.ref('procurement.do_view_procurements').read()[0]
    action['domain'] = [('group_id', 'in', self.mapped('group_id').ids)]
    return action
