Skip to content
Snippets Groups Projects
Commit b55f843e authored by Nicolás Mac Rouillon's avatar Nicolás Mac Rouillon Committed by William Henrotin
Browse files

[FIX] stock: Add missing field in cxt depends on stock calculation.


This "depends context" was missing fields and the compute of the stock qty's were not correct in several cases.
We add the same as the fields "force_company".

closes odoo/odoo#70268

X-original-commit: d6bd78e5
Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
parent 48c0efcc
Branches
Tags
No related merge requests found
......@@ -641,7 +641,7 @@ class ProductTemplate(models.Model):
'product_variant_ids.stock_move_ids.product_qty',
'product_variant_ids.stock_move_ids.state',
)
@api.depends_context('company')
@api.depends_context('company', 'location', 'warehouse')
def _compute_quantities(self):
res = self._compute_quantities_dict()
for template in self:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment