Skip to content

Commit

Permalink
[IMP] rma : add index on stock_move.rma_line_id
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta authored and AaronHForgeFlow committed Sep 20, 2024
1 parent 2e9bf62 commit 2af11be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rma/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2af11be

Please sign in to comment.