| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 404 |
| Technical Name |
sale_invoice_discount_control |
| License | LGPL-3 |
| Website | https://www.ebitdasolutions.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 404 |
| Technical Name |
sale_invoice_discount_control |
| License | LGPL-3 |
| Website | https://www.ebitdasolutions.com |
Sale Invoice
Discount Control
Ebitda Solutions
Hide Discount on Printed Reports | Per-Line Discount Visibility Control | Works on Sale Orders & Invoices
Control Discount Visibility on Sale & Invoice Reports โ Per Line.
Sale Invoice Discount Control is a custom Odoo 19 module built by Ebitda Solutions that adds a "Hide Disc. on Report" checkbox to every order line in both Sale Orders and Customer Invoices. When checked, the discount percentage is hidden from the printed report for that specific line โ while all amounts (subtotal, tax, total) remain fully correct. The discount is always visible in the UI for internal use; only the customer-facing printout is controlled.
๐ท๏ธ Per-Line Hide Discount Checkbox
A "Hide Disc. on Report" checkbox is added to each order line in Sale Orders and Invoices โ giving full control over which lines show or hide the discount column on printed documents.
โ Amounts Always Correct
Hiding the discount on a report does not change any computed amount. Subtotals, taxes, and totals are always calculated correctly using Odoo's standard tax engine โ no overrides needed.
๐ Seamless Sale Order โ Invoice Flow
The show_discount flag transfers automatically from Sale Order lines to Invoice lines when invoicing โ no need to re-configure anything after creating the invoice from a sale order.
KEY HIGHLIGHTS
Hide Disc. on Report โ Per Line
A simple checkbox on each order line lets you control whether the Disc.% column prints for that line on the customer-facing report โ independently per line.
Works on Both Sale & Invoice Reports
The discount visibility control applies to both the Sale Order printout and the Customer Invoice report โ consistent behaviour across the full sales workflow.
Totals Always Accurate
Hiding the discount never affects computed amounts. Odoo's standard tax engine calculates all subtotals and totals correctly โ the checkbox only controls report display.
Auto-Transfers to Invoice Lines
When a Sale Order is invoiced, the "Hide Disc. on Report" flag automatically carries over to each invoice line โ no manual re-configuration required after invoicing.
Sale Order โ Hide Disc. on Report Checkbox
The Sale Order form shows a new "Hide Disc. on Report" column in the order lines. Each line has an independent checkbox โ here the bottle line has it checked (discount hidden on report) while the bag line does not. The Disc.% and all amounts remain fully visible in the UI regardless of this setting.

Sale Order Printed Report โ Discount Hidden on Selected Line
On the printed Sale Order report (Order #S00015), the bottle line shows no Disc.% value in the DISC.% column because "Hide Disc. on Report" was checked โ while the bag line correctly shows 10.00. All totals ($22.77) remain accurate regardless of which lines hide their discount.

Customer Invoice โ Hide Disc. on Report Auto-Transferred
When the Sale Order is invoiced, the "Hide Disc. on Report" flag transfers automatically to each invoice line. The invoice form (invoice177) shows the same per-line checkbox in the Invoice Lines tab โ bottle line has it checked, bag line does not. No manual re-configuration needed after invoicing.

Invoice Printed Report โ Discount Hidden, Totals Correct
On the printed Customer Invoice (invoice177), the bottle line shows no Disc.% while the bag line shows 10.00 โ exactly matching the checkbox settings. The Untaxed Amount ($19.80), Tax 15% ($2.97), and Total ($22.77) are all computed correctly by Odoo's standard tax engine, unaffected by the discount visibility setting.

๐ท๏ธ Per-Line "Hide Disc. on Report" Checkbox on Sale Order Lines
๐งพ Per-Line "Hide Disc. on Report" Checkbox on Invoice Lines
๐ Auto-Transfer of show_discount Flag from Sale Order to Invoice Line
๐จ๏ธ Disc.% Column Hidden Per Line on Printed Sale Order Report
๐จ๏ธ Disc.% Column Hidden Per Line on Printed Invoice Report
โ Column Alignment Preserved โ Empty <td> Placeholder Keeps Report Layout Intact
๐ฐ Subtotals, Taxes & Totals Always Accurate โ No Amount Override
๐๏ธ Discount Always Visible in UI โ Only Customer-Facing Report is Controlled
Release 19.0.1.0.0
Initial Release- Add show_discount (Hide Disc. on Report) boolean field to sale.order.line
- Add show_discount (Hide Disc. on Report) boolean field to account.move.line
- Auto-transfer show_discount from Sale Order line to Invoice line on invoice creation
- Override Sale Order report to hide Disc.% cell per line when show_discount is True
- Override Invoice report to hide Disc.% cell per line when show_discount is True
- Empty <td> placeholder inserted to maintain column alignment on printed reports
- No amount computation overrides โ all subtotals and totals remain standard Odoo
- Discount always visible in UI for internal use regardless of show_discount setting
Our Services
Please log in to comment on this module