'Check if the resupply routes from this warehouse follow the changes of number of delivery steps
Check routes being delivery bu this warehouse and change the rule going to transit location'

def _check_delivery_resupply(self, new_location, change_to_multiple):

    Pull = self.env['procurement.rule']
    routes = self.env['stock.location.route'].search([('supplier_wh_id', '=', self.id)])
    pulls = Pull.search(['&', ('route_id', 'in', routes.ids), ('location_id.usage', '=', 'transit')])
    pulls.write({'location_src_id': new_location.id, 'procure_method': ((change_to_multiple and 'make_to_order') or 'make_to_stock')})
    if (not change_to_multiple):
        routings = [self.Routing(self.lot_stock_id, location, self.out_type_id) for location in pulls.mapped('location_id')]
        mto_pull_vals = self._get_mto_pull_rules_values(routings)
        for mto_pull_val in mto_pull_vals:
            Pull.create(mto_pull_val)
    else:
        Pull.search(['&', ('route_id', '=', self._get_mto_route().id), ('location_id.usage', '=', 'transit'), ('location_src_id', '=', self.lot_stock_id.id)]).unlink()
