OdooWiki OCA HUB

Purchase order revisions

purchase_order_revision folder_open OCA/purchase-workflow open_in_new
Purchase License: AGPL-3

Inspired on OCA module sale_order_revision, this module was rebuilt to implement purchase_order_revision.

On Cancelled or RFQ Sent requests for quotation/purchase orders, you can click on New Revision. This will create a new revision of the RFQ, with the same base number and a '-revno' suffix appended. A message is added in the chatter saying that a new revision was created.

The old revisions of a purchase order are flagged as inactive, so they don't clutter up searches.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets buyers create a new revision of a cancelled or sent request for quotation/purchase order, keeping the same base reference with a revision suffix and archiving the old versions.

This module adds revision tracking to purchase orders and requests for quotation. On a purchase order that is cancelled or in the 'RFQ Sent' state, a 'New Revision' button appears in the header. Clicking it creates a copy of the order with the same base reference plus a revision suffix, and the new revision starts in the cancelled state. A message is posted in the chatter to record that a new revision was created.

Old revisions are flagged as inactive so they no longer appear in normal searches, but they are still linked to the current order. On the order form, a 'Prev. revisions' button (with a counter) appears when previous revisions exist; it opens a list of all revisions, including the archived ones, filtered on the current revision.

The module adds two fields to purchase orders: a link to the current revision and a list of old revisions. It also enforces that the order reference and revision number must be unique per company. It touches the purchase order model and its form and search views, and depends on the base revision module.

Depends on

Models and fields (1)
  • purchase.order · new modelold_revision_ids, current_revision_id

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

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0

Pre-Requirement

You need to install OCA's base_revision and purchase modules for this module to work.

No verified information in OCA: Configuration, Usage.

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.