From 157eeb7c65fdd72f076dd2c3b8b0f211fc52acf3 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Thu, 14 Nov 2024 01:29:48 +0100 Subject: [PATCH] [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 --- rma/models/stock_move.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rma/models/stock_move.py b/rma/models/stock_move.py index eaa41114f..226ac4568 100644 --- a/rma/models/stock_move.py +++ b/rma/models/stock_move.py @@ -26,9 +26,7 @@ class StockMove(models.Model): ) # RMA that creates the out move rma_id = fields.Many2one( - comodel_name="rma", - string="RMA return", - copy=False, + comodel_name="rma", string="RMA return", copy=False, index=True ) def unlink(self):