Skip to content

Commit

Permalink
Revert "[ADD] stock_ux: qty_forecast_stored"
Browse files Browse the repository at this point in the history
This reverts commit 55e0ef2.

closes #439

Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
bruno-zanotti committed Jan 19, 2024
1 parent ef11096 commit b6dbe95
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 27 deletions.
1 change: 0 additions & 1 deletion stock_ux/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
============
Expand Down
2 changes: 1 addition & 1 deletion stock_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': '',
Expand Down
10 changes: 0 additions & 10 deletions stock_ux/models/stock_warehouse_orderpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
15 changes: 0 additions & 15 deletions stock_ux/views/stock_warehouse_orderpoint_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,6 @@
<field name="warehouse_rotation" optional="show"/>
<field name="warehouse_rotation_stdev" optional="show"/>
</field>
<field name="qty_forecast" position="replace">
<field name="qty_forecast_stored"/>
</field>
</field>
</record>

<record model="ir.ui.view" id="warehouse_orderpoint_search">
<field name="name">stock.warehouse.orderpoint.search</field>
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.stock_reorder_report_search"/>
<field name="arch" type="xml">
<filter name="filter_not_snoozed" position="after">
<separator/>
<filter string="Prevision Negativa" name="qty_forecast_stored" domain="[('qty_forecast_stored', '&lt;', 0)]"/>
</filter>
</field>
</record>

Expand Down

0 comments on commit b6dbe95

Please sign in to comment.