mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_multi_level: mrp cleanup performance
- Index the planned_order_id column on mrp.production model - Delete from mrp.planned.order before deleting from mrp.inventory
This commit is contained in:
@@ -9,4 +9,7 @@ class MrpProduction(models.Model):
|
||||
|
||||
_inherit = "mrp.production"
|
||||
|
||||
planned_order_id = fields.Many2one(comodel_name="mrp.planned.order")
|
||||
planned_order_id = fields.Many2one(
|
||||
comodel_name="mrp.planned.order",
|
||||
index=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user