OdooWiki OCA HUB

Product Supplierinfo Update Price

product_supplierinfo_update_price folder_open OCA/purchase-workflow open_in_new
Uncategorised License: AGPL-3

This module allows updating the product's vendor price from the purchase order line.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a refresh button on purchase order lines that updates the vendor price stored on the product with the price entered on the order. It can also create a new vendor price record if none exists for that supplier.

When you edit a purchase order, each line now shows a small refresh icon next to the unit price. The icon only appears when the line is already saved, has a product, a vendor and a price, and the price on the order differs from the vendor price currently stored on the product (or no vendor price exists yet).

Clicking the button updates the product's vendor price for that supplier to match the price on the purchase order line. If no vendor price record exists for that supplier and product, a new one is created automatically with the order's price.

The button is hidden when nothing needs updating, so users only see it when there is a real change to apply. This keeps the vendor price list on the product in sync with what was actually negotiated on the purchase order, without having to open the product form manually.

The module extends purchase.order.line and adds a button to the purchase order form view. It relies on the standard vendor selection logic to find the right vendor price record based on supplier, quantity, date and unit of measure.

Depends on

purchaseproduct
Models and fields (1)
  • purchase.order.line · extends an existing modelcan_update_product_supplierinfo

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: 2 confirmed, 7 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

To use this module, you need to:

  • Go to Purchase > New Purchase
  • Set the supplier and add a purchase order line with a product and its price
  • If the price of the product on the purchase order line for that supplier is different from the price set in the product's vendor list (on the purchase tab), or if no vendor entry exists, a refresh button will appear to the right of the unit price. Otherwise, the button will not be shown.
  • If you click the refresh button, the vendor price will be updated or a new vendor entry will be created, as appropriate.

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.