Minimize access to provisioning and overflowing locations
Computing internal shipments can imply a loop over several locations *and* lots of products for many days.
This means the main code of the loop may easily be executed milions of time, making it worth small performance improvements.
The proposed patch stores in a variable provisioning_location and overflowing_location which avoids executing __getattr__ millions of times.