On a multi warehouse configuration
where a warehouse view_location is parent of an other warehouse's view_location
this will return the closest warehouse of a location
Not like the get_warehouse method (odoo core code)
which returns from all parent warehouses found
the first one ordered by the sequence