OdooWiki OCA HUB

Purchase Order Qty change no recompute

purchase_order_qty_change_no_recompute folder_open OCA/purchase-workflow open_in_new
Purchases License: AGPL-3

This module prevents to recompute if only quantity has changed in purchase order line.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Stops Odoo from recalculating purchase order line details (like description, planned date, unit price and discount) when only the ordered quantity or unit of measure is changed.

This module changes how Odoo reacts when you edit a purchase order line. Normally, changing the quantity or the unit of measure on a line can trigger Odoo to recompute other fields such as the line description, the planned date, the unit price and the discount.

With this module installed, those other fields are no longer recalculated just because the quantity or unit of measure changed. The link to the product is still used so that the first calculation happens correctly when you pick a product.

  • Applies to purchase order lines (purchase.order.line).
  • Affects the fields name, date_planned, price_unit and discount.
  • Removes product_qty and product_uom from the triggers that cause those fields to be recomputed.
  • Keeps product_id as a trigger so the initial values are still filled in.

There are no new menus, buttons, reports or settings. The change is automatic and only affects the internal recalculation behaviour of purchase order lines. It is useful when you want to adjust quantities without losing manually entered descriptions, prices or dates.

Depends on

purchase

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: 6 confirmed, 3 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 18.0

To use this module, you need to:

  • Create a new purchase order.
  • Add product line and set custom unit price.
  • Save purchase order.
  • Edit purchase order and change quantity (custom unit price not been reset).

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.