-
- Downloads
[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:
Simon Lejeune (sle) <sle@openerp.com>
Showing
- addons/stock/models/stock_move.py 3 additions, 1 deletionaddons/stock/models/stock_move.py
- addons/stock_account/models/account_move.py 1 addition, 1 deletionaddons/stock_account/models/account_move.py
- addons/stock_account/models/stock_valuation_layer.py 1 addition, 1 deletionaddons/stock_account/models/stock_valuation_layer.py
Loading
Please register or sign in to comment