OdooWiki OCA HUB

Purchase Order No Zero Price

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

Prevent zero prices on confirmed POs to help ensure proper Stock Valuation when receiving the products.

Also supports purchase_triple_discount module, if installed.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Prevents purchase order lines from having a zero unit price once the order is confirmed, helping ensure correct stock valuation. If a line has no price, Odoo shows an error and blocks the change.

This module adds a validation rule to purchase order lines. When a line's unit price is zero, Odoo checks whether the line is a real product line (not a section or note), whether the purchase order is already confirmed or done (not draft or cancelled), and whether any of the three discount fields (if the triple discount module is installed) is set to 100%. If all these conditions are met, Odoo raises an error message listing the affected products and prevents saving the line.

  • The check runs automatically whenever the unit price, the line type, or the order status changes.
  • It applies to confirmed and done purchase orders, not to draft or cancelled ones.
  • Lines that are sections or notes are ignored.
  • If a line is fully discounted (100% on any discount field), a zero price is allowed.
  • The error message shows the names of the products missing a price.

The rule appears directly on the purchase order form when editing lines. It touches the purchase.order.line model and works together with the standard Purchase app. No new menus or reports are added.

Depends on

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

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

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

terminal Installation and usage

OCA documentation · Odoo 16.0

To use:

  • Create an RFQ, and add a line with zero price.
  • Confirm the RFQ, an error message will prevent that and ask you to enter the missing prices.
  • A zero subtotal line can still be entered by setting a 100% discount.

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.