Skip to content

Commit

Permalink
[14.0][IMP] add lot_id index True
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev-Roche committed Feb 25, 2025
1 parent 8a8de1c commit b43bb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_lot_selection/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"

lot_id = fields.Many2one("stock.production.lot", "Lot", copy=False)
lot_id = fields.Many2one("stock.production.lot", "Lot", copy=False, index=True)

def _prepare_procurement_values(self, group_id=False):
vals = super()._prepare_procurement_values(group_id=group_id)
Expand Down

0 comments on commit b43bb79

Please sign in to comment.