OdooWiki OCA HUB

Sale Order Line Remove

sale_order_line_remove folder_open OCA/sale-workflow open_in_new
Sales License: AGPL-3

This module allows the removal of sale order lines even after the order has been confirmed, under certain conditions. Specifically, a sale order line can be removed if:

  • It has not been invoiced.
  • It has not been delivered.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you delete sale order lines from confirmed orders when they have not been invoiced or delivered, after enabling the option in Sales settings.

This module adds an option in the Sales settings called "Allow Sale Order Line Remove". When it is switched on, users can delete a line from a confirmed sale order, provided that line has not been invoiced and has not been delivered.

  • If the line has already been invoiced, Odoo blocks the deletion and shows the message "You can not remove an order line that has been invoiced".
  • If the line has already been delivered, Odoo blocks the deletion and shows the message "You can not remove an order line that has been delivered".
  • When a line can be removed, the related stock moves that are not yet done are cancelled and deleted, and any delivery picking that becomes empty is removed as well.

If the setting is off, the standard Odoo behaviour applies and confirmed order lines cannot be removed. The module touches the sale order line model (sale.order.line) and the settings screen (res.config.settings). The setting is stored as a system parameter, so it applies to the whole database.

Depends on

sale_stocksale_management
Models and fields (2)
  • sale.order.line · extends an existing model
  • res.config.settings · extends an existing modelrestrict_sale_order_line_remove (Allow Sale Order Line Remove)

Text generated by AI (DeepSeek) from reading the Odoo 18.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: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 18.0

Once the module is installed:

  • Go to a sale order.
  • You can now delete a sale order line if it hasn't been invoiced or delivered.

No verified information in OCA: Installation, Configuration.

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.