Fixes odoo/odoo#5814. It will also calculate virtual stock when lot/owner/pack is specified, but will not filter the future stock on lot/pack.