Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix product _compute_quantities context dependencies
Description of the issue/feature this PR addresses: _compute_quantities calls _compute_quantities_dict which calls _get_domain_locations, this last function depends also on 'location' and 'warehouse' from context, so also this variables should be put in the depends_context decorator Current behavior before PR: product.qty_available and product.with_context(location=x).qty_available return the same value also if the product in stored in more than one location Desired behavior after PR is merged: product.with_context(location=x).qty_available should return the quantity available only in location x This has been already fixed in 14.0. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes #69874 Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
- Loading branch information