mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
@@ -29,10 +29,23 @@ class StockQuantityHistory(models.TransientModel):
|
||||
)
|
||||
action["context"] = ctx
|
||||
if self.env.context.get("active_model") == "stock.valuation.layer":
|
||||
operator = "child_of" if self.include_child_locations else "="
|
||||
action["domain"] = expression.AND(
|
||||
[
|
||||
action["domain"],
|
||||
[("stock_move_id.location_dest_id", "=", self.location_id.id)],
|
||||
[
|
||||
"|",
|
||||
(
|
||||
"stock_move_id.location_dest_id",
|
||||
operator,
|
||||
self.location_id.id,
|
||||
),
|
||||
(
|
||||
"stock_move_id.location_id",
|
||||
operator,
|
||||
self.location_id.id,
|
||||
),
|
||||
],
|
||||
]
|
||||
)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user