diff --git a/addons/stock/models/stock_quant.py b/addons/stock/models/stock_quant.py index bc84c5a8d46..bc093d4a9d3 100644 --- a/addons/stock/models/stock_quant.py +++ b/addons/stock/models/stock_quant.py @@ -66,7 +66,7 @@ class StockQuant(models.Model): domain=lambda self: self._domain_location_id(), auto_join=True, ondelete='restrict', readonly=True, required=True, index=True, check_company=True) lot_id = fields.Many2one( - 'stock.production.lot', 'Lot/Serial Number', + 'stock.production.lot', 'Lot/Serial Number', index=True, ondelete='restrict', readonly=True, check_company=True, domain=lambda self: self._domain_lot_id()) package_id = fields.Many2one(