From b6dbe959640749b239020b03dde17f32844295d4 Mon Sep 17 00:00:00 2001 From: Bruno Zanotti Date: Fri, 19 Jan 2024 17:10:34 +0000 Subject: [PATCH] Revert "[ADD] stock_ux: qty_forecast_stored" This reverts commit 55e0ef29cfb6af2f1a994319a7d184da0e9c7c34. closes ingadhoc/stock#439 Signed-off-by: Bruno Zanotti --- stock_ux/README.rst | 1 - stock_ux/__manifest__.py | 2 +- stock_ux/models/stock_warehouse_orderpoint.py | 10 ---------- .../views/stock_warehouse_orderpoint_views.xml | 15 --------------- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/stock_ux/README.rst b/stock_ux/README.rst index 3397a292..c143f25d 100644 --- a/stock_ux/README.rst +++ b/stock_ux/README.rst @@ -34,7 +34,6 @@ Stock UX #. Add Rotation and Location Rotation to Reordering Rules (orderpoint): delivered quantities to customers on last 120 days divided per 4 (to make it monthly) #. Add optional constraints configurable by Picking Type #. Add partner field on procurement group form view. -#. Allow to reorder the lines in Replenishment view according to the forecast qty, Add the filter "Negatives quantities". Installation ============ diff --git a/stock_ux/__manifest__.py b/stock_ux/__manifest__.py index 8d52f0ce..e1d3895e 100644 --- a/stock_ux/__manifest__.py +++ b/stock_ux/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { 'name': 'Stock UX', - 'version': "16.0.2.14.0", + 'version': "16.0.2.15.0", 'category': 'Warehouse Management', 'sequence': 14, 'summary': '', diff --git a/stock_ux/models/stock_warehouse_orderpoint.py b/stock_ux/models/stock_warehouse_orderpoint.py index 1dc8087e..dfca6d9a 100644 --- a/stock_ux/models/stock_warehouse_orderpoint.py +++ b/stock_ux/models/stock_warehouse_orderpoint.py @@ -45,9 +45,6 @@ class StockWarehouseOrderpoint(models.Model): qty_multiple = fields.Float(tracking=True) location_id = fields.Many2one(tracking=True) product_id = fields.Many2one(tracking=True) - qty_forecast_stored = fields.Float( - string="PrevisiĆ³n", - ) @api.depends('product_id', 'location_id') def _compute_rotation(self): @@ -70,10 +67,3 @@ def _compute_rotation(self): 'warehouse_rotation_stdev': warehouse_rotation_stdev, 'warehouse_rotation': warehouse_rotation, }) - - def _get_orderpoint_action(self): - action = super()._get_orderpoint_action() - orderpoints = self.env['stock.warehouse.orderpoint'].with_context(active_test=False).search([]) - for rec in orderpoints: - rec.qty_forecast_stored = rec.qty_forecast - return action diff --git a/stock_ux/views/stock_warehouse_orderpoint_views.xml b/stock_ux/views/stock_warehouse_orderpoint_views.xml index c6125710..7eb889bf 100644 --- a/stock_ux/views/stock_warehouse_orderpoint_views.xml +++ b/stock_ux/views/stock_warehouse_orderpoint_views.xml @@ -12,21 +12,6 @@ - - - - - - - - stock.warehouse.orderpoint.search - stock.warehouse.orderpoint - - - - - -