Sale Order Line Cancel Sale Stock
sale_order_line_cancel_sale_stock · OCA/sale-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module cancels only the stock moves for the remaining qty to deliver. Also it will track the canceled qty if a order line's stock move is canceled but only if there are not other started operations for this sale order line.
When the base addon is configured to also decrease the original ordered qty it ensures that there are now new moves created. Because by default, odoo will recompute the required stock operations if the ordered qty is changed. By canceling the operations for the remaining qty before the ordered qty is changed, odoo will not recompute the required stock operations, because the qty done by moves is the same as the ordered qty.
[!WARNING] It's not recommended to use this module if the update of the quantity ordered on the sale order line is allowed the confirmed state. This could lead to unpredictable behavior.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 0
No views found for this module.
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
cancel_remaining_qty(self)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…