Skip to Content
Catalog / PUR · Purchase / Create Purchase Order from Receipt
Create Purchase Order from Receipt
purchase_incoming_picking

Create Purchase Order from Receipt

Turn a goods-received receipt into a matching Purchase Order with one click.

v19.0.1.0.0 Abdelfatah Mohammad & Budoor (AlshayebCo) Purchase

Inherits stock picking to add a stored computed Boolean has_purchase_order (true when the receipt has a purchase_id or any move with a purchase_line_id.order_id). action_create_purchase_order validates the receipt, creates a purchase order plus purchase order line records per move (pricing from product supplierinfo or standard_price), links moves via Command.link, sets origin and posts a chatter message. action_view_purchase_order returns an act_window to the linked orders. UI is one inherited view on stock view_picking_form adding two oe_stat_button buttons gated by purchase group_purchase_user and picking_type_code.

Overview

Warehouse teams often receive goods before any Purchase Order exists in the system, leaving inventory and procurement out of sync. This module adds a Create Purchase Order button directly on the incoming receipt form, generating a vendor PO from the receipt's lines, quantities and units of measure, and pricing it automatically from vendor price lists or product cost. The receipt and the resulting Purchase Order stay linked, and a View Purchase Order button plus a chatter note keep the audit trail clear.

Key Features

  • Adds a Create Purchase Order button on the incoming receipt form for users in the Purchase group.
  • Builds a full Purchase Order from the receipt's vendor, warehouse operation type and company.
  • Copies each receipt move into a PO line with its product, quantity and unit of measure.
  • Prices each line automatically from the vendor's supplier price list, falling back to product cost.
  • Links every PO line back to its originating stock move so receipt and order stay connected.
  • Provides a View Purchase Order button to jump from the receipt to its linked order(s).
  • Prevents duplicate orders by hiding the create button once a receipt already has a Purchase Order.
  • Validates vendor and product lines before creation and posts a confirmation note to the receipt chatter.

Technical Details

Technical Name purchase_incoming_picking
Version 19.0.1.0.0
License LGPL-3
Domain PUR · Purchase

Security

No new access rules or groups are introduced; the module ships an empty access file and reuses Odoo's standard records. Both action buttons are restricted to members of the standard Purchase / Purchase User group, so only purchasing staff can create or view the generated orders.

Dependencies

stock purchase_stock