Skip to content
Snippets Groups Projects
Commit 4625f3dc authored by Alessandro Fiorino's avatar Alessandro Fiorino Committed by GitHub
Browse files

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 odoo/odoo#69874

Signed-off-by: default avatarRémy Voet <ryv-odoo@users.noreply.github.com>
parent 413357e0
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment