[IMP] rma: add index for rma_id in stock.move model

Add an index to rma_id in the stock.move model to improve access performance for the one2many field delivery_move_ids
This commit is contained in:
sbejaoui
2024-11-14 01:29:48 +01:00
committed by Víctor Martínez
parent a75c1f8763
commit eca53d256b

View File

@@ -26,9 +26,7 @@ class StockMove(models.Model):
) )
# RMA that creates the out move # RMA that creates the out move
rma_id = fields.Many2one( rma_id = fields.Many2one(
comodel_name="rma", comodel_name="rma", string="RMA return", copy=False, index=True
string="RMA return",
copy=False,
) )
def unlink(self): def unlink(self):