8.0 'sale stock' (onesteinbv)

Port 'sale_stock' modification realized by OneStein BV. (branch onesteinbv:8.0-os)

Yes, it is better to just use registry.