Skip to content
Snippets Groups Projects
Commit e34a176d authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[REF] stock, stock_account: indices for fast move unlink


Stock moves records can be unlinked in some cases, for example when
confirming a move containing a kit, the original move is unlinked and
replaced by the moves of the components of the kit.

This commit adds two indices to accelerate the unlink of stock move
records. The fields were the indices are added are foreign key on stock
move, and postgres checks the foreign keys of the rows before deleting
them.

closes odoo/odoo#44337

Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 8f28b302
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment