From 2af11be8b7e02d58352bb4414242aa6b95b730d5 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Fri, 20 Sep 2024 12:40:21 +0200 Subject: [PATCH] [IMP] rma : add index on stock_move.rma_line_id --- rma/models/stock_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rma/models/stock_move.py b/rma/models/stock_move.py index 9a839f180..04e6b2054 100644 --- a/rma/models/stock_move.py +++ b/rma/models/stock_move.py @@ -8,7 +8,7 @@ class StockMove(models.Model): _inherit = "stock.move" rma_line_id = fields.Many2one( - "rma.order.line", string="RMA line", ondelete="restrict" + "rma.order.line", string="RMA line", ondelete="restrict", index="btree_not_null" ) @api.model_create_multi