mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_location_orderpoint: Add an index on stock move level
If the database contains billion of stock moves, deletion of an orderpoint can take a great amount of time. Add an index to avoid that.
This commit is contained in:
committed by
Michael Tietz
parent
f8ac1bb387
commit
24856621b1
@@ -12,7 +12,7 @@ class StockMove(models.Model):
|
||||
_inherit = "stock.move"
|
||||
|
||||
location_orderpoint_id = fields.Many2one(
|
||||
"stock.location.orderpoint", "Stock location orderpoint"
|
||||
"stock.location.orderpoint", "Stock location orderpoint", index=True
|
||||
)
|
||||
|
||||
@ormcache("self", "product")
|
||||
|
||||
Reference in New Issue
Block a user