Skip to content

Conversation

@fw-bot-adhoc
Copy link
Contributor

backport v19 performance fixes and improve search for 'To Reorder' filter

Backports Odoo v19 performance improvements:

  • Store qty_to_order_computed field for faster queries
  • Add index on warehouse_id
  • Recompute orderpoints when moves are created in _run_pull

for more info:
odoo/odoo@6f2d1b2

Additional improvement beyond v19:

  • Replace filtered_domain with SQL domain in _search_qty_to_order
    to avoid loading all orderpoints in memory

Includes migration scripts to create index and populate initial values.

Resolves database hangs and timeouts on large databases when filtering
orderpoints by 'To Reorder'.

Forward-Port-Of: #815

@roboadhoc
Copy link
Collaborator

Pull request status dashboard

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @maq-adhoc cherrypicking of pull request #815 failed.

stdout:

Auto-merging stock_ux/__manifest__.py
CONFLICT (content): Merge conflict in stock_ux/__manifest__.py
Auto-merging stock_ux/models/stock_warehouse_orderpoint.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @roboadhoc.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @maq-adhoc this forward port of #815 is awaiting action (not merged or closed).

2 similar comments
@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @maq-adhoc this forward port of #815 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @maq-adhoc this forward port of #815 is awaiting action (not merged or closed).

@ced-adhoc ced-adhoc force-pushed the 19.0-18.0-t-102343-ced-2276-fw branch from 425233f to 0378433 Compare December 26, 2025 18:23
@ced-adhoc ced-adhoc force-pushed the 19.0-18.0-t-102343-ced-2276-fw branch from 0378433 to 3cd6f86 Compare December 26, 2025 18:25
@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @maq-adhoc this forward port of #815 is awaiting action (not merged or closed).

@maq-adhoc maq-adhoc closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants