Sale Order Line move to Optional
This module enables moving sale order lines to the optional products section, while removing them from the main order lines.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds a button on each sale order line that moves the line into the optional products section, removing it from the main order lines. It only works while the quotation is still a draft or sent.
This module adds a small button (with a list icon) on every line of a sale order or quotation. Clicking it takes that line out of the main order lines and recreates it as an optional product, keeping the same product, description, quantity, unit of measure, unit price and discount.
Where it appears: - On the sale order form, inside the order lines list, each line gets a "Move to optional" button.
Business rules and automatic behaviour: - The move is only allowed when the order is in draft or sent state. If the order is already confirmed, Odoo shows an error: "You cannot add options to a confirmed order." - When the button is used, the original line is deleted from the order and a new optional product entry is created with the same values.
It touches the sale order line model (sale.order.line) and creates records in the optional products model (sale.order.option). The change is visible on the standard sale order screen; no new menu is added.
Depends on
Models and fields (1)
- sale.order.line · extends an existing model
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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0You can move order lines to the optional products section only when the sales order is in Draft or Quotation Sent state
- Open the sales order
- Click on "Move to optional" next to the order line you want to move
- The product will be removed from the order lines and added to the Optional Products section
No verified information in OCA: Installation, Configuration.
Installation 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.