mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
@@ -48,15 +48,4 @@ class StockQuantityHistory(models.TransientModel):
|
||||
],
|
||||
]
|
||||
)
|
||||
else:
|
||||
# Show 0 quantities on Inventory Valuation to display Account Valuation
|
||||
# anomalies, such as, non 0 stock_value on cost_method FIFO
|
||||
if self.env.context.get("active_model") == "stock.valuation.layer":
|
||||
action["domain"] = expression.AND(
|
||||
[action["domain"], [("quantity", "!=", 0)]]
|
||||
)
|
||||
else:
|
||||
action["domain"] = expression.AND(
|
||||
[action["domain"], [("qty_available", "!=", 0)]]
|
||||
)
|
||||
return action
|
||||
|
||||
Reference in New Issue
Block a user