OdooWiki OCA HUB

Purchase Request to Purchase Agreement

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

This module introduces the possibility to create or extend a Purchase Agreement from Purchase Request Lines.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets you turn purchase request lines into a purchase agreement (bid) directly from Odoo, either creating a new draft agreement or adding quantities to an existing one, and tracks the bid status back on the request.

This module connects purchase requests with purchase agreements (also called bids or tenders). From a purchase request or from selected request lines, you get a "Create Purchase Agreements" action that opens a wizard. In the wizard you can pick an existing draft purchase agreement to update, or leave it empty to create a new one. The wizard lists the request lines with product, description, quantity to bid and unit of measure, and you can adjust the quantity before confirming.

When you confirm the wizard, the system creates or updates the agreement lines. If a line with the same product, unit of measure and analytic distribution already exists in the agreement, the quantity is increased instead of creating a duplicate. The related purchase requests are automatically moved to "In Progress".

On purchase request lines you can see the quantity that is in a bid and the bid status (draft, confirmed, done, cancelled). A request line that is linked to an agreement line can no longer be edited or deleted. On the purchase request form a button shows how many agreements are linked, and on the purchase agreement form a button shows how many purchase requests are linked. When a purchase agreement is confirmed, a message is posted on each linked purchase request listing the items and bid quantities.

Depends on

purchase_requestpurchase_requisition_stock
Models and fields (6)
  • purchase.request · extends an existing modelrequisition_count
  • purchase.requisition · extends an existing modelpurchase_request_count
  • purchase.request.line · extends an existing modelis_editable (Is editable), requisition_qty (Quantity in a Bid), requisition_lines (Purchase Agreement Lines), requisition_state (Bid Status)
  • purchase.requisition.line · extends an existing modelpurchase_request_lines, has_purchase_request_lines
  • purchase.request.line.make.purchase.requisition · new modelitem_ids (Items), purchase_requisition_id (Purchase Agreement)
  • purchase.request.line.make.purchase.requisition.item · new modelname (Description), wiz_id (Wizard), line_id (Purchase Request Line), product_id (Product), request_id (Purchase Request), product_qty (Quantity to Bid), product_uom_id (UoM)

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 18.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Go to the Purchase Request Lines from the menu entry 'Purchase Requests', and also from the 'Purchase' menu.
  • Select the lines that you wish to initiate the Purchase Agreement for, then go to 'More' and press 'Create Purchase Agreement'. You can choose to select an existing Draft Call for Bids or create a new one.
  • The application attempts to consolidate the lines in the Purchase Agreement in in as few lines as possible, for the same product, UoM and analytic account.

No verified information in OCA: Installation, Configuration.

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.