OdooWiki OCA HUB

Hide invoice lines from the PDF report if the unit price is 0

account_invoice_report_hide_line folder_open OCA/account-invoice-reporting open_in_new
Accounting License: AGPL-3

In some service companies, the customer is invoiced for a service that may consume inventory items. Those inventory items needs to be invoiced to account in the cost of services sold and reconcile the value of the inventory items delivered and sitting in the Un-Invoiced Goods Delivered, but they should not appear to the customer on the PDF report of their invoice.

This module allows you to hide invoice lines from the PDF report if the unit price is 0.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Adds a 'Show in report' checkbox on invoice lines that is automatically unticked when the unit price is zero, so those lines are left out of the printed/PDF invoice.

This module gives you control over which invoice lines the customer actually sees on the printed invoice. Every invoice line now carries a 'Show in report' checkbox.

  • When you type or change a unit price on a line, Odoo automatically ticks the checkbox if the price is greater than zero, and unticks it if the price is zero or negative. You can still tick or untick it yourself afterwards.
  • The checkbox is visible in the invoice form, both on the invoice lines list and on the journal items list, so you can review and adjust it before printing.
  • When the invoice PDF is generated, only the lines whose checkbox is ticked are included; unticked lines are skipped. The remaining lines keep their normal order.

This is useful when a service invoice must include cost or inventory-related lines for accounting purposes, but those lines should not be shown to the customer. The module touches account.move.line and the invoice report template, and adds a field to the invoice form view. No new menus or reports are created.

Depends on

account

Required by other modules

Models and fields (1)
  • account.move.line · extends an existing modelshow_in_report

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

Confirmed on 2026-11-03 in branch 14.0 of OCA/account-invoice-reporting.

terminal Installation and usage

OCA documentation · Odoo 14.0

To use this module, you need to:

  • Go to Invoicing
  • Create or select a draft invoice
  • Add an invoice line
  • Un-check the "Show in report" box
  • Select a storable product
  • Set the unit price to 0
  • Save and print the invoice. The new line does not show up in PDF.
  • If you are using anglo-saxon accounting, validate the invoice and check that the journal entry is reconciling the delivery of the product.

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.