Quantity displayed change with stock_skip_warehouse context
The relate launched from product of sale or purchase has this context key set.
For the view "Product Quantities by Warehouse", this context key should be explicitly display as it may change the result.
For the view "Locations * Quantity", this context key should always be false otherwise we do not display the real quantity of the warehouse.