Skip to content

Commit

Permalink
[FIX] stock_by_warehouse: Problem with contexts show wrong informatio…
Browse files Browse the repository at this point in the history
…n for several locations

Issue reported on #1633
  • Loading branch information
allanpa88 committed Jan 18, 2024
1 parent 4fdb227 commit ebab08e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stock_by_warehouse/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def _compute_get_quantity_warehouses_json(self):
tmpl = (
self_origin.sudo()
.with_company(warehouse.company_id)
.with_context(warehouse=warehouse.id, location=False)
.with_context(warehouse=warehouse.id, location=False,)
)
tmpl.invalidate_recordset()
if warehouse_id and warehouse_id.id == warehouse.id:
info["warehouse"] = tmpl.qty_available_not_res
info["content"].append(
Expand Down

0 comments on commit ebab08e

Please sign in to comment.