'Check routes being delivered by the warehouses (resupply routes) and
change their rule coming from the transit location'

def _check_reception_resupply(self, new_location):

    routes = self.env['stock.location.route'].search([('supplied_wh_id', 'in', self.ids)])
    self.env['procurement.rule'].search(['&', ('route_id', 'in', routes.ids), ('location_src_id.usage', '=', 'transit')]).write({'location_id': new_location.id})
