Pop-up warning when PO line created with $0 cost in Odoo

Warning 0cost

To help prevent one of the most common and costly mistakes —accidentally confirming purchase orders (POs) with $0 cost lines —Steersman has developed a new Odoo customization: the $0 PO Line Warning pop-up.

Many businesses face costly errors when purchase order lines are accidentally entered with $0 cost, for example, due to missing vendor pricing or human error. This can lead to financial discrepancies, inventory valuation issues, and confusion for the receiving and accounting teams. Fixing this after the fact requires a manual reversal, a PO reset, an edit, and a re-receipt, which can be time-consuming.

Steersman’s customization adds an immediate, visual safeguard. When a user confirms a PO line with a $0 cost, Odoo displays a warning message. This ensures the user reviews the entry before confirming the PO.

How It Works

Screenshot 2025-05-08 165500

When you have a product with a $0 price on the PO line and try to confirm the PO, the above pop-up warning will display.

  • If you want to return to the draft PO to adjust the price, click the “Return To Order” button.
  • To confirm the order with a $0 price, click the “Confirm” button.

Key Features:

  • Pop-up alert on $0 unit cost
    • Displays a warning message when a purchase order line is confirmed with a $0 cost.
  • Applies to purchase orders only
    • The warning is triggered only in the PO module, not in sales.
  • Does not block confirming PO
    • The user can override the warning and confirm the PO if needed.
  • Improves data accuracy
    • Helps catch accidental omissions of costs before POs are finalized.
    • Reduces the risk of inventory, accounting, or reporting errors resulting from $0 costs.
  • Compatible with bulk purchasing workflows
    • Works in multi-line or high-volume POs.
  • Easy installation
    • Simple installation with no complex setup steps.

How to Configure

Po warnig config
  1. In the purchase module, go to Configuration > Settings > Orders:
  2. Enable “Warning for $0 Purchase Order Line” and save.