diff --git a/stock_usability/stock.py b/stock_usability/stock.py
index fdf858c..cc0df60 100644
--- a/stock_usability/stock.py
+++ b/stock_usability/stock.py
@@ -147,6 +147,21 @@ class StockQuant(models.Model):
action['context'] = {'search_default_todo': True}
return action
+ def action_stock_move_lines_reserved(self):
+ self.ensure_one()
+ action = self.env['ir.actions.act_window'].for_xml_id('stock', 'stock_move_line_action')
+ action['domain'] = [
+ ('state', 'not in', ('draft', 'done')),
+ ('product_id', '=', self.product_id.id),
+ ('location_id', '=', self.location_id.id),
+ ('lot_id', '=', self.lot_id.id or False),
+ '|',
+ ('package_id', '=', self.package_id.id or False),
+ ('result_package_id', '=', self.package_id.id or False),
+ ]
+ action['context'] = {'create': 0}
+ return action
+
class StockInventoryLine(models.Model):
_inherit = 'stock.inventory.line'
diff --git a/stock_usability/stock_view.xml b/stock_usability/stock_view.xml
index 8e52d9c..e7b152c 100644
--- a/stock_usability/stock_view.xml
+++ b/stock_usability/stock_view.xml
@@ -398,6 +398,11 @@ should be able to access it. So I add a menu entry under Inventory Control. -->
1
+
+
+
+
+
@@ -432,6 +437,24 @@ So I create another "regular" Quants" menu entry -->
parent="stock.menu_stock_inventory_control"
sequence="135"/>
+
+ Product Moves
+ stock.move.line
+ tree,kanban,pivot,form
+ [('lot_id', '=', active_id)]
+ {'search_default_done': 1, 'create': 0}
+
+
+
+ stock.production.lot
+
+
+
+
+
+
+
+
{}