Skip to content
Snippets Groups Projects
Commit 52c31664 authored by Florent de Labarre's avatar Florent de Labarre Committed by GitHub
Browse files

[FIX] stock: add index


Before this commit, in large database, openning a sale.order can take 3s.
Because in module sale_purchase_stock, _get_purchase_order use a On2many field : stock_move_ids, with inverse field group_id.

Now it takes 200 ms.

closes odoo/odoo#114709

X-original-commit: 5fc448e7
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent b4632724
No related branches found
No related tags found
Loading
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