diff --git a/modules/stock_lot/__init__.py b/modules/stock_lot/__init__.py
index 3f5c5dd919..72474b15fc 100644
--- a/modules/stock_lot/__init__.py
+++ b/modules/stock_lot/__init__.py
@@ -15,7 +15,6 @@ def register():
stock.LotTrace,
stock.LotByLocationContext,
stock.LotsByLocations,
- stock.LotByWarehouseContext,
stock.Location,
stock.Move,
stock.MoveAddLotsStart,
diff --git a/modules/stock_lot/stock.py b/modules/stock_lot/stock.py
index 2abf782e9b..248c47a486 100644
--- a/modules/stock_lot/stock.py
+++ b/modules/stock_lot/stock.py
@@ -405,38 +405,6 @@ class LotsByLocations(ModelSQL, ModelView):
return [('lot.' + name + nested, *clause[1:])]
-class LotByWarehouseContext(LotByLocationContext):
- "Lot by Warehouse"
- __name__ = 'stock.lots_by_warehouse.context'
- warehouse = fields.Many2One(
- 'stock.location', "Warehouse", required=True,
- domain=[
- ('type', '=', 'warehouse'),
- ],
- )
- stock_skip_warehouse = fields.Boolean(
- "Only storage zone",
- help="Check to use only the quantity of the storage zone.")
- locations = fields.Function(
- fields.Many2Many('stock.location', None, None, "Locations"),
- 'on_change_with_locations')
-
- @classmethod
- def default_warehouse(cls):
- return Pool().get('stock.location').get_default_warehouse()
-
- @classmethod
- def default_stock_skip_warehouse(cls):
- return Transaction().context.get('stock_skip_warehouse')
-
- @fields.depends('warehouse')
- def on_change_with_locations(self, name=None):
- locations = []
- if self.warehouse:
- locations.append(self.warehouse)
- return locations
-
-
class Location(metaclass=PoolMeta):
__name__ = 'stock.location'
diff --git a/modules/stock_lot/stock.xml b/modules/stock_lot/stock.xml
index 6872a28c2f..269b1587f8 100644
--- a/modules/stock_lot/stock.xml
+++ b/modules/stock_lot/stock.xml
@@ -235,39 +235,6 @@ this repository contains the full copyright notices and license terms. -->
-
- stock.lots_by_warehouse.context
-
- lot_by_warehouse_context_form
-
-
-
- Lots By Warehouse
- stock.lots_by_locations
-
-
- stock.lots_by_warehouse.context
-
-
-
-
-
-
-
- form_relate
- product.template,-1
-
-
-
- form_relate
- product.product,-1
-
-
-
Stock Locations Tree
stock.location
diff --git a/modules/stock_lot/view/lot_by_warehouse_context_form.xml b/modules/stock_lot/view/lot_by_warehouse_context_form.xml
deleted file mode 100644
index 3ef775c667..0000000000
--- a/modules/stock_lot/view/lot_by_warehouse_context_form.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-