[IMP] 7.0 version of module stock_obsolete

This is a port of the 6.0 module "stock_obsolete", for 7.0.
can you please do something like
```python
res = loc_obj._product_get_multi_location_for_period(
    cr, uid, localtion_ids, ...
)
```