OdooWiki OCA HUB

Stock Location Orderpoint Cleanup

stock_location_orderpoint_cleanup folder_open OCA/stock-logistics-orderpoint open_in_new
Uncategorised License: AGPL-3

This module will help to clean generated moves from stock location orderpoints.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets inventory managers cancel the pending stock moves that location orderpoints generated, either from a single orderpoint or in bulk, and optionally re-run the replenishment afterwards.

This module adds a cleanup tool for the moves created by location orderpoints. On the location orderpoint form, next to the replenishment button, a new "Cleanup replenishments" button appears (only for users in the Inventory: Location Orderpoint Cleanup group, which stock managers get automatically).

Clicking it opens a wizard where you can confirm the orderpoints to clean and tick "Run After" if you want the orderpoints to be run again once the cleanup is finished. The same wizard is also available as a bulk action on the orderpoint list.

Only moves that are not yet done or cancelled, that have no quantity done, and whose transfer has not been printed are selected for cleanup. Those moves are cancelled and a message is posted on the related transfer listing the products that were cleaned up for that orderpoint.

The cleanup itself runs in the background through the job queue, so it does not block the user. Two helper methods are provided for scheduled jobs: one cleans a given list of orderpoints, the other cleans all orderpoints using a chosen replenishment method. The module touches stock.location.orderpoint, stock.picking and adds the stock.location.orderpoint.cleanup wizard.

Models and fields (2)
  • stock.location.orderpoint · extends an existing model
  • stock.location.orderpoint.cleanup · new modelrun_after, orderpoint_ids

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-orderpoint.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • There is a security group 'Location Orderpoint Cleanup Group'. Users that can have access to cleanup action should be in that group. By default, all users that are in 'Inventory/Administrator' are in that group.
  • You can configure crons to execute cleanup actions.
  • Enable debug mode, go to Settings > Technical > Scheduled Actions
  • Add a cron with:
  • base model 'Stock Location Orderpoint'
  • In python code, add a line 'model.run_cleanup(orderpoints, run_after)' where 'orderpoints' is a list of orderpoint ids and 'run_after' is True if you want to run the orderpoint(s) after cleanup.
  • If you want to cleanup ordepoints by replenish method, add a line 'model.run_cleanup_method(replenish_method, run_after)' where 'replenish_method' is 'fill_up' by default (depending on extension modules you have installed)
  • You can have cron jobs to execute the cleanup actions (see Configuration section).
  • If you are in the 'Location Orderpoint Cleanup Group', you can launch manually the cleanup on the orderpoint form level:
  • Click on 'Cleanup replenishments'.
  • In the wizard, check the 'Run After' box if you want the orderpoint to be run after cleanup.
  • You can also select several orderpoints from the list view and select the action 'Cleanup Stock Location Orderpoints' that will launch the wizard.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.