OdooWiki OCA HUB

Purchase invoicing no zero line

purchase_invoicing_no_zero_line folder_open OCA/account-invoicing open_in_new
Purchase Management License: AGPL-3

This module adds the possibility to avoid creating purchase invoice lines without quantity.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds an option on purchase journals to skip invoice lines with zero quantity when a vendor bill is created from a purchase order.

This module gives you a simple switch on purchase journals so that vendor bills generated from purchase orders do not include lines with a quantity of zero.

Where it appears: - On the journal configuration form (Accounting journals), a new checkbox "Avoid zero lines" is shown only for journals of type Purchase.

What it does: - When you create a vendor bill from a purchase order (using the purchase order reference on the bill), Odoo normally copies all purchase order lines into the bill, including those with zero quantity. - If the journal selected on the bill has "Avoid zero lines" checked, those zero-quantity lines that come from that purchase order are automatically removed from the bill. - The removal happens as part of the automatic completion of the bill from the purchase order, so the user sees the bill without the empty lines right away.

Business rules and behaviour: - The option is per journal, so you can decide which purchase journals should drop zero lines and which should keep them. - Only lines linked to the same purchase order and with a quantity considered zero (according to unit of measure rounding) are removed; other lines are untouched.

Areas touched: - It extends account.journal with the new setting and adjusts the behaviour of account.move when a vendor bill is filled from a purchase order.

Depends on

purchase
Models and fields (2)
  • account.move · extends an existing model
  • account.journal · extends an existing modelavoid_zero_lines (Avoid zero lines)

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

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/account-invoicing.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Go to Invoicing > Configuration > Journals.
  • Enable Avoid zero lines.
  • Save.

NOTE: This option is only available for journals of type "purchase".

No verified information in OCA: Installation, Usage.

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.