[IMP] rma : add index on stock_move.rma_line_id

This commit is contained in:
Florian da Costa
2024-09-20 12:40:21 +02:00
committed by Aaron ForgeFlow
parent 2e9bf62646
commit 2af11be8b7

View File

@@ -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