OdooWiki OCA HUB

Sale Order Rename

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

This module provides feature to rename Quotation / Sale Order in Draft state.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Lets users edit the Quotation / Sale Order reference number directly on the sales order form while the document is still in Draft state, and enforces that this reference stays unique per company.

This module changes how the reference number of a Quotation or Sale Order behaves in Odoo.

  • On the sales order form, the reference field (the document number shown at the top) becomes editable instead of being locked. It can only be changed while the order is still in Draft state; once the order moves to a later state the field becomes read-only again.
  • A small label is shown next to the field when the order is no longer in Draft, making it clear that the number can no longer be edited.
  • A uniqueness rule is added: the sale order reference must be unique within the same company. If a user tries to save a duplicate reference for the same company, Odoo blocks it with the message "Sale Order name must be unique within a company!".
  • When Odoo itself generates the reference automatically (the default "New" value), the module silently retries creation if a duplicate reference is detected, so automatic numbering does not fail because of a collision.

The module extends the sale.order model and inherits the standard sales order form view sale.view_order_form. It does not add new menus or reports.

Depends on

sale
Models and fields (1)
  • sale.order · extends an existing model

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

Sources · Odoo 12.0

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

terminal Installation and usage

No verified information

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.

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.