Sale Order Restrict Copy Archived Product
This module allows you to restrict duplication of sales order if they have archived products.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Prevents users from duplicating a sales order when any of its lines use an archived product, showing an error message listing the archived products.
This module adds a safety check to the duplication of sales orders in Odoo.
When a user tries to duplicate a sales order (for example with the Duplicate action), the system looks at every product used on the order lines. If at least one of those products is archived (no longer active), the duplication is stopped and an error message appears listing the archived product names.
- The check applies to each selected sales order.
- The error message names the archived products involved, so the user knows what to fix.
- If all products on the order are still active, the duplication works exactly as before.
The module only touches the sales order model sale.order and its duplication behaviour. It does not add menus, buttons, reports or scheduled jobs, and it does not change prices, stock or any other sales rules. Its purpose is to avoid creating new sales orders that reference products that have been archived and are no longer sellable.
Depends on
Models and fields (1)
- sale.order · 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: 3 confirmed, 6 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.0Usage
Source · Odoo 18.0To use this module, you need to:
- Go to Sales / Orders
- Select a Sale with archived products, or archive a product of a sale.
- Click to the Action -> Duplicate button of the Sale Order form. A validation error message will be displayed showing the archived products.
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.