Purchase Order No Zero Price
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.0Prevents 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
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-03Confirmation status: 2 confirmed, 7 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 16.0Usage
Source · Odoo 16.0To 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.
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.
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.