OdooWiki OCA HUB

Purchase Propagate Quantity

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

Without this module, if you increase the quantity on a purchase line, the increase is propagated on the reception, however nothing is done if the quantity is decreased. This module changes the behavior of Odoo and propagates the decrease if the new purchased quantity is below the already received quantity. The increase is also propagated.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

When you change the quantity on a confirmed purchase order line, this module automatically adjusts the linked receipt operations, including reducing quantities that were already planned or partly received.

This module changes how Odoo handles quantity changes on confirmed purchase orders. Normally, increasing a purchased quantity updates the receipt, but decreasing it does nothing. With this module, both increases and decreases are propagated to the corresponding stock moves (the receipt operations).

  • When you edit the quantity or unit of measure on a purchase order line that is in the 'Purchase Order' state, the linked incoming stock moves are updated to match the new quantity.
  • If the new quantity is zero, the related stock moves are cancelled.
  • If the new quantity equals the quantity already received, the remaining stock moves are cancelled.
  • If you reduce the quantity below what is already received, the module tries to remove the difference from the remaining moves. It will not allow you to remove more than what is still pending; if you try, an error message appears: 'You cannot remove more that what remains to be done. Max removable quantity ...'.
  • The reduction is applied move by move, starting with the smallest quantities, and moves are cancelled if their quantity becomes zero.

This affects purchase order lines and stock moves. It works together with the purchase_stock module and is useful when you need to correct ordered quantities after confirming a purchase order without manually adjusting receipts.

Depends on

purchase_stock
Models and fields (2)
  • stock.move · extends an existing model
  • purchase.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 14.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 12.0

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

terminal Installation and usage

OCA documentation · Odoo 14.0

When a Purchase Order is confirmed, you can decrease the quantity on a line and the reception is updated.

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.