Try assign moves with locations are not in warehouse or view type
Create locations tree:
Warehouse -> type warehouse
Warehouse/Storage -> type view
Warehouse/Storage/S1 -> type view
Warehouse/Storage/S1/S1A -> type storage
...
Warehouse/Storage/S2 -> type view
Warehouse/Storage/S2/S2A -> type storage
...
When try assign moves, search locations parent chilf_of but not by type.
See review33321002