From e031b3020014d99a270c06ba09ef9c45c421da13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 25 Aug 2022 15:17:36 +0200 Subject: [PATCH] [FIX] stock_account_quantity_history_location: Remove domains. Remove domains introduced in https://github.com/OCA/stock-logistics-reporting/commit/f4f1466973032a824a6951c1e1c8fe8999ab52cf that make the valuation incorrect. --- .../wizards/stock_quantity_history.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/stock_account_quantity_history_location/wizards/stock_quantity_history.py b/stock_account_quantity_history_location/wizards/stock_quantity_history.py index 2388e65..739e29a 100644 --- a/stock_account_quantity_history_location/wizards/stock_quantity_history.py +++ b/stock_account_quantity_history_location/wizards/stock_quantity_history.py @@ -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