OdooWiki OCA HUB

Purchase stock price unit sync

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

This module allows to sync picking cost prices with purchase order line price when moves are already done.

Can be used with product_cost_price_avco_sync.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

This module automatically updates the cost price recorded on completed stock moves when you change the unit price or discount on a purchase order line.

When you edit the unit price or discount on a purchase order line that is already in the 'Purchase Order' state, the module updates the cost price of all related stock moves that have already been completed. This ensures that the valuation of goods received matches the final negotiated price.

  • The update happens automatically when you save changes to the price or discount on a purchase order line.
  • Only stock moves that are in the 'Done' state are updated.
  • The module skips lines for products that are components of a phantom bill of materials (kits), so their cost is not changed.
  • The new cost price is calculated based on the purchase order line's price unit, including any discount.
  • This affects the purchase.order.line model and the related stock moves.

There are no new menus or screens; the change is integrated into the existing purchase order workflow. The module is useful for businesses that need accurate cost valuation after a purchase price is adjusted post-receipt.

Depends on

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

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 8 confirmed, 1 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

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.