OdooWiki OCA HUB

Purchase Report Discount Visibility

purchase_report_discount_visibility folder_open OCA/purchase-reporting open_in_new
Reporting License: AGPL-3

This module hides the Discount column in the Purchase Order report if all order lines have no discount applied.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Hides the Discount column in the printed Purchase Order report when no order line has a discount, so clean orders print without an empty discount column.

This module changes how the printed Purchase Order document looks. It adds a small check on purchase orders that looks at every order line and answers whether at least one line carries a discount.

When you print or download a Purchase Order (the standard PDF report), the Discount column header and the discount values are only shown if that check is true. If none of the lines have a discount, the column is left out entirely, giving a cleaner document.

  • Applies to the standard Purchase Order report only; no new menus or screens are added.
  • The rule is automatic: no setting to switch on, it simply follows the data on the order.
  • If even one line has a discount, the column appears for the whole order as usual.
  • It touches the purchase.order model (through the check) and the purchase order report template.

Nothing else in Odoo changes: no new fields, no validations, no emails or scheduled actions. The behaviour is purely about the visibility of the discount information in the printed purchase order.

Depends on

purchase

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-05
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-05 in branch 18.0 of OCA/purchase-reporting.

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.