Sale order revisions
sale_order_revision · OCA/sale-workflow
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE sale_order SET unrevisioned_name = name WHERE unrevisioned_name is NULL` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
On cancelled orders, you can click on the "New copy of Quotation" button. This will create a new revision of the quotation, with the same base number and a '-revno' suffix appended. A message is added in the chatter saying that a new revision was created.
In the form view, a new tab is added that lists the previous revisions, with the date they were made obsolete and the user who performed the action.
The old revisions of a sale order are flagged as inactive, so they don't clutter up searches.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_form |
sale.order.form | sale.order | form | Inherits sale.view_order_form |
view_sales_order_filter |
sale.order.list.select | sale.order | list | Inherits sale.view_sales_order_filter |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
-
current_revision_idMany2one → sale.ordercomodel_name='sale.order' -
old_revision_idsOne2many → sale.ordercomodel_name='sale.order'inverse_name='current_revision_id'
-
action_back_to_current(self) -
action_view_revisions(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…