mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[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:
committed by
Víctor Martínez
parent
a75c1f8763
commit
eca53d256b
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user