Sale Stock Prebook Cancel Line
This addon is a technical module that ensures that the computation of the cancelled quantity on a sale order line is correct even when a prebooking is involved. Cancelled prebooked quantities must not be taken into account in the computation of the cancelled quantity on the sale order line.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Prevents cancelling a sale order line while it still has prebooked stock moves, and keeps prebooked quantities out of the cancelled quantity calculation on sale order lines.
This module is installed automatically when both the prebooking and sale order line cancellation modules are present, so users do not need to enable it manually.
It changes how Odoo behaves when a user tries to cancel a sale order line that is linked to prebooked stock moves:
- If any of the stock moves reserved for the sale line is still active (not cancelled), Odoo blocks the cancellation and shows an error telling the user to cancel the related prebooked moves first.
- Only moves that are flagged as used for sale reservation are checked, so ordinary stock moves are not affected by this restriction.
It also adjusts the calculation of the cancelled quantity on a sale order line. Stock moves that were used for a sale reservation (prebooked moves) are excluded from that calculation, so the cancelled quantity shown on the sale order line reflects only the moves that really count for cancellation.
The module touches the sale order line and stock move records. It does not add any new menu, screen, report or field; it only refines existing cancellation behaviour and quantity computation.
Models and fields (1)
- sale.order.line · extends an existing model
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-03Confirmation 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/sale-prebook.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.